View Single Post
  #8  
Old 11-04-2007, 08:36 PM
_dave_ _dave_ is offline
Senior Member
 
Join Date: Feb 2005
Location: UK
Posts: 2,628
Default 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.
Reply With Quote