View Single Post
  #83  
Old 08-16-2007, 07:21 PM
betafemale betafemale is offline
Senior Member
 
Join Date: Jan 2007
Posts: 194
Default Re: AHK Bet Pot Script for iPoker

While you wait (might take a while), here is a reload function for the script (it uses two functions from the iPoker bet pot script, if you want it stand alone, you have to copy those too):

Reload()
{
ReloadX := 400
ReloadY := 140

ReloadOKX := 165
ReloadOKY := 245

CheckBoxX := 725
CheckBoxY := 575

SaveMousePos()

WinGetPos, WindowX, WindowY, , , A

MouseMove, WindowX + ReloadX, WindowY + ReloadY

Click

Sleep, 250

WinGetPos, PopupX, PopupY, Width, Height, A

if (Width = 402 AND height = 265)
{
MouseMove, PopupX + ReloadOKX, PopupY + ReloadOKY

Click

Sleep, 1000

CheckBoxX := 725 + WindowX
CheckBoxY := 575 + WindowY

PixelGetColor, checkcolor, %CheckBoxX%, %CheckBoxY%

if (checkcolor != "0xFFFFFB")
{
MouseMove, CheckBoxX, CheckBoxY

Click
}
}

RestoreMousePos()

return
}

Paste it in the other script (I have mine just above the betpot function), and paste this also some where in the top of the script, along with the rest of the hot keys:

F12::
Reload()
Return

Now F12 reloads the ACTIVE window (NOT the one the mouse is over, like the rest of the script). The final version will be for the window that the mouse is over, and might be all along diffrent, see this a as a preview or something.

I tried this today on my XP SP2, classic theme on Titan for over 1200 hands and reloaded alot of times, and it worked flawlessly FOR ME. If your stack is too big already it will handle it, also if the post blinds check box is unchecked it will recheck it. Also there is no check yet that you actually are over a poker table, so don't click F12 in another window or something strange might happen [img]/images/graemlins/wink.gif[/img]

Enjoy!

/beta
Reply With Quote