Re: AHK script for Party Poker SNGs - ALL-IN
[ QUOTE ]
I'm having problemos with the auto-closer. But only when I'm starting my set.
Can I disable the auto-closet from the script and run it as a separate script after after I've gotten all my tables open?
[/ QUOTE ]
I don't trust t, so have turned it off atm (it tried to close non finished SNGs a few times).
To use it alone you just need to make a small script like this:
<font class="small">Code:</font><hr /><pre>
#Persistent
#NoEnv
SendMode Input
SetTitleMatchMode 2
SetTimer, AutoCloseFinishedSNGs, 1000
return
AutoCloseFinishedSNGs:
; Now lets try closing the SNGs.
checkfield = Button3 ; Button3 is the "Auto Post Blind" checkbox.
LobbyWindowTitle = Poker Lobby ; identify poker lobby substring
TableWindowTitle = Buy-in. ; identify pokertable substring
WinGet, lobbyID, ID, %LobbyWindowTitle%
WinGet, pid, PID, ahk_id%lobbyID%
WinGet, rlist, LIST, %TableWindowTitle% ahk_pid%pid%
Loop %rlist%
{
this_id := rlist%a_index%
If this_id != %lobbyID%
{
WinGetTitle, name, ahk_id%this_id%
; Make sure we are not seating.
ControlGet, result, Visible, , Seat Open, ahk_id%this_id%
if (result = 0)
{
; Is it not visible?
ControlGet, result, Visible, , %checkfield%, ahk_id%this_id%
if (result = 0)
{
; Lets make 100% sure and try again incase of a graphics delay.
Sleep, 150
ControlGet, result, Visible, , %checkfield%, ahk_id%this_id%
if (result = 0)
{
WinClose, ahk_id%this_id% ; Close the table.
}
}
}
}
}
return</pre><hr />
You can also right click on it's taskbar icon and use "Pause Script" to turn it on/off.
Juk [img]/images/graemlins/smile.gif[/img]
|