Two Plus Two Publishing LLC Two Plus Two Publishing LLC
 

Go Back   Two Plus Two Poker Forums > Internet Poker > Software

Notices

Software Discussions about gambling-related and poker software.

Reply
 
Thread Tools Display Modes
Old 07-23-2012, 05:45 PM   #1
veteran
 
Baobhan-Sith's Avatar
 
Join Date: Oct 2009
Location: ♠ ♥ ♦ ♣
Posts: 2,811
Script request: List Incomplete Tourney ID's

Hi there,

I need a script or kind of software to gather/list the tourney ID's of those tournaments that are listed as 'incomplete' in HEM. I'd be fine with a text file output so I can c&p the ID's from this one source, would save me a lot of clicks (read: time). Even better if it could auto-request the tourney summaries from Stars. In case such a thing already exists please guide me to it as I can't find anything (iirc I've read about sth like this long time ago).

TIA
Baobhan-Sith is offline   Reply With Quote
Old 07-23-2012, 06:50 PM   #2
newbie
 
AAron the B's Avatar
 
Join Date: Aug 2009
Posts: 46
Re: Script request: List Incomplete Tourney ID's

good idea
AAron the B is offline   Reply With Quote
Old 07-26-2012, 02:20 PM   #3
veteran
 
Baobhan-Sith's Avatar
 
Join Date: Oct 2009
Location: ♠ ♥ ♦ ♣
Posts: 2,811
Re: Script request: List Incomplete Tourney ID's

OK so I couldn't resist and tried around myself. Here's my workaround:

Code:
#NoEnv
#Persistent
SendMode, input
CoordMode, Mouse, relative
#SingleInstance, force
SetTitleMatchMode, 3


Loop
{
WinWaitActive, Hand History Viewer
IfWinActive, Hand History Viewer
	{
	MouseClick, Left, 80, 65, 2		;DoubleClick Table ID
	Sleep, 50
	Send ^c
	WinClose, Hand History Viewer
	MsgBox, 4,, Request Summary for ID# %clipboard%? 
	IfMsgBox Yes
		{
		WinActivate, PokerStars Lobby - Logged in as YOUR_USERNAME
		WinWaitActive, PokerStars Lobby - Logged in as YOUR_USERNAME
		Send {ALT}
		Send {R}
		Send {Down}
		Send {Enter}
		WinWaitActive, Tournament History
		MouseClick, Left, 183, 116		;Tournament ID Input Field
		Sleep, 100
		Send ^v
		Send {Enter}
		WinWaitActive, PokerStars		;Confirmation Window
		Send {Enter}
		}
	else, WinWaitActive, Hand History Viewer
	}
else, return
}
return

Esc::ExitApp
This script gathers the ID from the HEM HandHistory Viewer, copies it to the clipboard, and handles the whole Summary request within the Stars client.

Before use:

- Replace YOUR_USERNAME, ldo
- Make sure both coords work with your screen resolution etc (WindowSpy)

How to use:

1. Save above code as e.g. 'RequestTS.ahk' and run the script
2. Open the 'Data View' tab in HEM
3. RightClick an (incomplete) tourney in the upper list
4. LeftClick into the HH area below and choose 'View All Hand Histories' *
5. Click 'Yes' to request the shown ID or 'No' to abort
(6. You can close the script by pressing ESC)

* works with selected HH as well


HTH HF
Baobhan-Sith is offline   Reply With Quote
Old 07-28-2012, 07:09 PM   #4
veteran
 
Baobhan-Sith's Avatar
 
Join Date: Oct 2009
Location: ♠ ♥ ♦ ♣
Posts: 2,811
Re: Script request: List Incomplete Tourney ID's

ReqTS.ahk v0.2:

Code:
#NoEnv
#Persistent
SendMode, input
CoordMode, Mouse, relative
#SingleInstance, force
SetTitleMatchMode, 3

^s::
{
IfWinActive, ahk_class WindowsForms10.Window.8.app.0.33c0d9d	
   {
   MouseClick, Right, 1111, 777					;HH Area - HEM Maximized @1680*1050
   Sleep, 50
   MouseClick, Left, 1122, 777					;Context Menu - 'View All Hand Histories'
   WinWaitActive, Hand History Viewer,, 3				
   IfWinActive, Hand History Viewer
	{
	MouseClick, Left, 80, 65, 2				;DoubleClick Tourney ID
	Sleep, 50
	Send ^c
	WinClose, Hand History Viewer
	MsgBox, 4,, Request Summary for ID# %clipboard%? 
	IfMsgBox Yes
		{
		WinActivate, PokerStars Lobby - Logged in as YOUR_USERNAME
		WinWaitActive, PokerStars Lobby - Logged in as YOUR_USERNAME
		Send !r
		Send {Down}
		Send {Enter}
		WinWaitActive, Tournament History
		MouseClick, Left, 183, 116			;Tourney ID Input Field
		Sleep, 50
		Send ^v
		Send {Enter}
		WinWaitActive, PokerStars			;Confirmation Message
		Send {Enter}
		WinActivate, ahk_class WindowsForms10.Window.8.app.0.33c0d9d
		}
	else, return				
	}
   else, If ErrorLevel
	return
   else, return
   }
else, return
}
return

Esc::ExitApp
Saved another 2 clicks. In the HEM Data View tab, just select a tourney and wait for the HH area to show up (make sure it is visible and coords do match), then hit CTRL+S to auto-request its tourney summary.

In case you want to get rid of the Message Box as well (to save you yet another click), just delete or comment the line beginning with 'MsgBox', the 'If MsgBox' line, the following 2 brackets and the first 'else, return'. I'd recommend to keep it there though, just so you don't accidentally request the wrong TS.

Quote:
Before use:

- Replace YOUR_USERNAME, ldo
- Make sure coords work with your screen resolution etc (WindowSpy)
Also I'm not sure about the ahk_class of HEM, better check that as well.

Last edited by Baobhan-Sith; 07-28-2012 at 07:18 PM.
Baobhan-Sith is offline   Reply With Quote

Reply
      

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -4. The time now is 12:22 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.
Copyright © 2008-2010, Two Plus Two Interactive