Re: PAHUD in tournaments
I posted this a while back to fix this issue:
Stars_MTT_PAHUD_Fix.ahk
;-----------------------------------------------------------------------------
#Persistent
#SingleInstance, Force
SetTitleMatchMode, 2
SetTimer, checktables, 60000 ; <-- CHANGE HERE FOR CHECK INTERVAL (Ms)
Gosub, checktables
return
checktables:
ps_tables := ""
WinGet, pslist, list, Logged In as, , PokerStars Lobby
WinGet, pa_id, id, PokerAce Hud
ControlGet, hudlist, List, Col3, SysListView321, ahk_id%pa_id%`n"
ps_tables := ""
Loop, %pslist%
{
ps_id := pslist%A_Index%
WinGetTitle, title, ahk_id%ps_id%
StringTrimRight, title, title, StrLen(title) - InStr(title, " - ")+1
ps_tables := ps_tables . "," . title
}
Loop, Parse, hudlist, `n
{
if (!InStr(ps_tables, A_LoopField))
{
;MsgBox, %A_LoopField% no longer open
WinClose, ahk_id%pa_id%
WinWaitClose, ahk_id%pa_id%
Run, C:\Program Files\PokerAce Hud\PAHud.exe, C:\Program Files\PokerAce Hud
}
}
return
;-----------------------------------------------------------------------------
It should still work [img]/images/graemlins/smile.gif[/img]
dave.
|