View Single Post
  #2  
Old 01-19-2007, 03:28 PM
jukofyork jukofyork is offline
Senior Member
 
Join Date: Sep 2004
Location: Leeds, UK.
Posts: 2,551
Default Re: AHK script for Party Poker SNGs - ALL-IN

[ QUOTE ]
Hi.

I'm looking for a script that would push my chips in the middle via hotkey. I tried to "tune" some AHK scripts with no success. I suck, I know. Anyone? Please?

[/ QUOTE ]
I've just edited dave's betpot to do this without the need to read the pot size from FPHG's logs. Here's what you need to do:

a) Add this function into the BetPot script:

; This will set the edit box to the maximum amount.
Push(id, autobet)
{
pot := 10000000
ControlSetText, Edit3, %pot%, ahk_id%id%
Sleep -1
Sleep, 50
WinSet, Redraw,, ahk_id%id%
If(autobet)
{
ControlClick, AfxWnd42u19, ahk_id%id%
}

}

b) Edit the hotkey section to look like this:

~MButton::
Push(getid(),0)
return

~RButton::
Fold(getid())
return

~WheelUp::
AlterAmount(getid(),"up")
return

~WheelDown::
AlterAmount(getid(),"down")
return

c) Enjoy the lack of arm strain!

After you set this up you can: fold by right clicking anywhere on the table, move the slider up/down 1 BB using the scroll wheel, and press down the scroll wheel to set the bet edit box to all-in.

If you want to have it then press raise for you automatically you just need to use Push(getid(),1) rather than Push(getid(),0).

Juk [img]/images/graemlins/smile.gif[/img]
Reply With Quote