Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 11-29-2007, 09:08 PM
_dave_ _dave_ is offline
Senior Member
 
Join Date: Feb 2005
Location: UK
Posts: 2,628
Default Re: PartyBuyIn problem (solved)

Thankyou for this [img]/images/graemlins/smile.gif[/img]

I just updated the wiki page for the future, with your new code and a link to this page.

dave.
Reply With Quote
  #3  
Old 11-30-2007, 06:39 AM
Daddy Warbucks Daddy Warbucks is offline
Senior Member
 
Join Date: Oct 2006
Location: Doin\' numbers like Soduku
Posts: 3,968
Default Re: PartyBuyIn problem (solved)

Awesome! This annoys the hell out of me!
Reply With Quote
Reply

Thread Tools
Display Modes

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 08:16 PM.


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