View Single Post
  #4  
Old 11-11-2006, 11:33 PM
pineapple888 pineapple888 is offline
Senior Member
 
Join Date: Jun 2005
Location: Getting rivered by idiots
Posts: 6,558
Default Re: Auto timebank clicker on Stars PLEASE PLEASE PLEASE

OK more details:

After 8 seconds, you get a warning and the timebank circle appears.

After 8 more seconds, you get automucked if you have no $$ invested.

If you click on the timebank x seconds after the warning, the timebank will kick in 8-x seconds after you click it (e.g. you get your full 16 seconds before the timebank kicks in, no matter what).

I dug up the Party code for auto timebank clicker, in case anyone wants to work from that. (It worked very, very well.)

ATTENTION THIS CODE IS FOR PARTY, IT WILL NOT WORK FOR STARS

#Persistent
#SingleInstance Ignore
#NoEnv
checkfield = AfxWnd4236 ; AfxWnd4236 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
}
Reply With Quote