Open Side Menu Go to the Top
Register
Absolute SNG Opener Script Absolute SNG Opener Script

10-21-2010 , 09:33 AM
Hello,

here is my first serious attempt at some AHK, trying to create an easy hotkey to open 1-2 SnGs on Absolute. This specific one is for 300 chip Ultra Turbos, but I was hoping it could be expanded a bit for different sng formats.

I guess I'm just looking to see if anybody can help me streamline this, since it's probably not the best programming... Is there a way to assign this whole thing to a specific hotkey and get 2-4 tables to open consecutively? Is there a better way to go about it?

Thanks!


AbsoluteSNGOpener.ahk

SetTitleMatchMode, 2

WinActivate Absolute Poker - Logged in as XXXXX

MouseClick, left, 181, 244
MouseClick, left, 181, 244

WinWait Holdem - 300 Chips, Register

WinActivate

MouseClick, left, 448, 530

WinWait Absolute Poker

WinActivate

MouseClick, left, 334, 169

WinWait Tournament Registration,

MouseClick, left, 60, 200
MouseClick, left, 162, 264

SetTitleMatchMode Slow

WinWait Absolute Poker, OK,, ExcludeTitle Logged

WinActivate

;IfWinActive, Absolute Poker

MouseClick, left, 424, 178
Absolute SNG Opener Script Quote
10-23-2010 , 01:14 PM
Ok here is a 2nd version that lets me load 1 table with F1, or 2 with F2. It is still very limited though, in that I'm relying on mouse coordinates to open the tournament lobby and not actual text finding or anything specific like that.

This method also relies on the user filtering every game out except 6max and ultra turbo. You also have to make sure to click the 'Game' sort button once so that the 300 chip games are on top.

Any help in these matters would be awesome, but I'll keep at it myself and hopefully version 3 will be a bit more customizable.




APPokerSetup.ahk

F1::
SetTitleMatchMode, 2
WinActivate Absolute Poker - Logged in as 'XXXX' ;(put username here)
MouseClick, left, 181, 244 ; Double Click 300c game in Lobby
MouseClick, left, 181, 244
WinWait Holdem - 300 Chips, Register ; Tournament Lobby Screen
WinActivate
MouseClick, left, 448, 530
WinWait Absolute Poker,,, Logged ; Small popup
WinActivate Absolute Poker,,, Logged
MouseClick, left, 334, 169
WinWait Tournament Registration, ; Tournament Reg
MouseClick, left, 60, 200 ; Tourney Full btn
MouseClick, left, 162, 264
SetTitleMatchMode Slow ; Tourney Confirmation
WinWait Absolute Poker, OK,, ExcludeTitle Logged
WinActivate
;IfWinActive, Absolute Poker
MouseClick, left, 424, 178
WinWait Holdem - 300 Chips,,, Blinds ; Close Tournament Lobby
WinClose Holdem - 300 Chips,,, Blinds
return

F2::
SetTitleMatchMode, 2
WinActivate Absolute Poker - Logged in as 'XXXX' ;(put username here)
MouseClick, left, 181, 244 ; Double Click 300c game in Lobby
MouseClick, left, 181, 244
WinWait Holdem - 300 Chips, Register ; Tournament Lobby Screen
WinActivate
MouseClick, left, 448, 530
WinWait Absolute Poker,,, Logged ; Small popup
WinActivate Absolute Poker,,, Logged
MouseClick, left, 334, 169
WinWait Tournament Registration, ; Tournament Reg
MouseClick, left, 60, 200 ; Tourney Full btn
MouseClick, left, 162, 264
SetTitleMatchMode Slow ; Tourney Confirmation
WinWait Absolute Poker, OK,, ExcludeTitle Logged
WinActivate
;IfWinActive, Absolute Poker
MouseClick, left, 424, 178
WinWait Holdem - 300 Chips,,, Blinds ; Close Tournament Lobby
WinClose Holdem - 300 Chips,,, Blinds
; 2nd table
WinActivate Absolute Poker - Logged in as 'XXXX' ;(put username here)
MouseClick, left, 181, 258
MouseClick, left, 181, 258
WinWait Holdem - 300 Chips, Register
WinActivate
MouseClick, left, 448, 530
WinWait Absolute Poker,,, Logged
WinActivate Absolute Poker,,, Logged
MouseClick, left, 334, 169
WinWait Tournament Registration,
MouseClick, left, 60, 200
MouseClick, left, 162, 264
SetTitleMatchMode Slow
WinWait Absolute Poker, OK,, ExcludeTitle Logged
WinActivate
;IfWinActive, Absolute Poker
MouseClick, left, 424, 178
WinWait Holdem - 300 Chips,,, Blinds ; Close Tournament Lobby
WinClose Holdem - 300 Chips,,, Blinds
return
Absolute SNG Opener Script Quote
10-23-2010 , 07:24 PM
Hey thanks sweet script was wondering if its useable on UB since thats the site i play on
Absolute SNG Opener Script Quote
10-24-2010 , 01:15 PM
Thanks,

Not sure if it's good on UB.... Right now it's only good for a very specific game type, but I'm working on making it flexible for filtering to SNG's.
Absolute SNG Opener Script Quote
10-26-2010 , 01:47 AM
Good idea for making the script. please post the newer version when u have it. I am learning AHK myself. thanks
Absolute SNG Opener Script Quote

      
m