Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-29-2007, 08:58 PM
Kairos Kairos is offline
Member
 
Join Date: May 2007
Posts: 96
Default 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 &lt;&gt; 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 />
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:57 PM.


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