|
#1
|
|||
|
|||
Fix for party auto timebank script?
Does anyone know how to fix this ahk script. I tried to change
checkfield = AfxWnd4236 to checkfield = AfxWnd42u36 but it still doesn't work. |
#2
|
|||
|
|||
Re: Fix for party auto timebank script?
I got it! This works now.
#Persistent #SingleInstance Ignore #NoEnv checkfield = AfxWnd42u37 ; AfxWnd42u37 is timebank control LobbyWindowTitle = Poker Lobby ; identify poker lobby substring TableWindowTitle = Buy-in. ; identify pokertable substring interval = 1000 ; period between refreshes Loop { TableIDList(LobbyId()) Sleep %interval% } LobbyId() { local rid SetTitleMatchMode 2 WinGet, rid, ID, %LobbyWindowTitle% return rid } TableIDList(lobbyID) { local pid,rlist,this_id,name,result SetTitleMatchMode 2 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% ControlGet, result, Visible, , %checkfield%, ahk_id%this_id% if (result) { ControlClick %checkfield%, ahk_id%this_id% ;Click timebank } } } return } |
#3
|
|||
|
|||
Re: Fix for party auto timebank script?
hmm, interesting. It seems the only change you made is
checkfield = AfxWnd42u36 the same like I did. I wonder why it doesn't work for me then [img]/images/graemlins/confused.gif[/img] |
#4
|
|||
|
|||
Re: Fix for party auto timebank script?
[ QUOTE ]
hmm, interesting. It seems the only change you made is checkfield = AfxWnd42u36 the same like I did. I wonder why it doesn't work for me then [img]/images/graemlins/confused.gif[/img] [/ QUOTE ] AfxWnd42u37. |
#5
|
|||
|
|||
Re: Fix for party auto timebank script?
great news! [img]/images/graemlins/smile.gif[/img]. thanks to whoever found the solution.
|
#6
|
|||
|
|||
Re: Fix for party auto timebank script?
Can i just copy/paste from OP?
|
#7
|
|||
|
|||
Re: Fix for party auto timebank script?
IT WAS ME WHO FIXED IT! [img]/images/graemlins/smile.gif[/img] [img]/images/graemlins/grin.gif[/img]
Yes, ferb. |
#8
|
|||
|
|||
Re: Fix for party auto timebank script?
[ QUOTE ]
IT WAS ME WHO FIXED IT! [img]/images/graemlins/smile.gif[/img] [img]/images/graemlins/grin.gif[/img] [/ QUOTE ] LOL. Kärpänen for Software-mod! [img]/images/graemlins/grin.gif[/img] |
#9
|
|||
|
|||
Re: Fix for party auto timebank script?
[ QUOTE ]
I got it! This works now. #Persistent #SingleInstance Ignore #NoEnv checkfield = AfxWnd42u37 ; AfxWnd42u37 is timebank control LobbyWindowTitle = Poker Lobby ; identify poker lobby substring TableWindowTitle = Buy-in. ; identify pokertable substring interval = 1000 ; period between refreshes Loop { TableIDList(LobbyId()) Sleep %interval% } LobbyId() { local rid SetTitleMatchMode 2 WinGet, rid, ID, %LobbyWindowTitle% return rid } TableIDList(lobbyID) { local pid,rlist,this_id,name,result SetTitleMatchMode 2 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% ControlGet, result, Visible, , %checkfield%, ahk_id%this_id% if (result) { ControlClick %checkfield%, ahk_id%this_id% ;Click timebank } } } return } [/ QUOTE ] Just a quick thanks for making this work again! Just moved back to Party today and as luck would have it on the day they added back the 12 table limit, so this is kinda essential now. Anyway, thanks again - Juk [img]/images/graemlins/smile.gif[/img] |
#10
|
|||
|
|||
Re: Fix for party auto timebank script?
I've added this script to the Overcards wiki. See here:
http://www.overcards.com/wiki/moin.c...tyAutoTimeBank Juk [img]/images/graemlins/smile.gif[/img] |
|
|