Two Plus Two Newer Archives

Two Plus Two Newer Archives (http://archives1.twoplustwo.com/index.php)
-   Software (http://archives1.twoplustwo.com/forumdisplay.php?f=47)
-   -   Fix for party auto timebank script? (http://archives1.twoplustwo.com/showthread.php?t=274581)

kurti 12-04-2006 03:05 AM

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.

K䲰䮥n 12-04-2006 11:18 AM

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
}

kurti 12-04-2006 12:52 PM

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]

Mark1978 12-04-2006 03:56 PM

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.

aghasax 12-04-2006 04:34 PM

Re: Fix for party auto timebank script?
 
great news! [img]/images/graemlins/smile.gif[/img]. thanks to whoever found the solution.

ferb 12-05-2006 12:16 AM

Re: Fix for party auto timebank script?
 
Can i just copy/paste from OP?

K䲰䮥n 12-05-2006 03:28 AM

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.

aghasax 12-05-2006 03:32 PM

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]

aislephive 12-05-2006 04:13 PM

Re: Fix for party auto timebank script?
 
Sorry if I'm a little out of the loop, but what does this script do?

aghasax 12-05-2006 05:05 PM

Re: Fix for party auto timebank script?
 
It clics the timebank button in SNG's automatically.


All times are GMT -4. The time now is 03:27 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.