PartyBuyIn problem (solved)
I didn't find an official thread about this script so I will start a new one.
I had a problem with PartyBuyIn that whenever I clicked the reload button while still in a hand and having the maximum buyin the script would be stuck in a loop.
Here is the fixed script in case anyone had the same problem.
<font class="small">Code:</font><hr /><pre> </pre><hr />
<font class="small">Code:</font><hr /><pre> ;------------------------------------------------------------------------------------------
;;;;;;;;;;;;;;;;; CODE STARTS HERE
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: _dave_
;
#NoEnv
SendMode Input
SetTitleMatchMode, 2
WinGet, pid, PID, EmpirePoker.com: Poker Lobby
If (pid)
{
;Msgbox, % "Found Empire Lobby"
lobby := "Empire"
}
Else
{
WinGet, pid, PID, PartyPoker.com
If (pid)
{
;Msgbox, % "Found Party Lobby"
lobby := "Party"
}
Else
{
MsgBox, % "Failed to detect Party or Empire Poker Lobby,`n`nScript will exit."
Exit
}
}
Loop
{
WinWait, Buy- ahk_pid%pid% ahk_class #32770, , , Buy-in.
WinGet, id, ID
WinGetTitle, title, ahk_id%id%
IfInString, title, Tournament
{
;Msgbox, tourney table
ControlSend, Button2, {SPACE}, ahk_id%id%
Sleep, 40
ControlSend, Button5, {SPACE}, ahk_id%id%
}
Else
{
;Msgbox, cash table
ControlSend, Button2, {SPACE}, ahk_id%id%
WinWaitClose, ahk_id%id%, , 0.3
If ErrorLevel <> 0
{
WinGet, id2, ID, ahk_pid%pid% ahk_class #32770, Please enter an amount
If (id2)
{
ControlSend, Button1, {SPACE}, ahk_id%id2%
Sleep, 50
;ControlSend, Button2, {SPACE}, ahk_id%id%
<font color="red">ControlSend, Button2, {Esc}, ahk_id%id% </font>
}
}
}
}
;------------------------------------------------------------------------------------------
;;;;;;;;;;;;;;;;; CODE ENDS HERE </pre><hr />
|