|
#1
|
|||
|
|||
Stars SNG registration hotkey
This is working nicely for me. I just hit a button on my gamepad to join another SNG. It is set up for $16 turbos and you need some bitmaps to make it work, but I'll spare the explanation unless there is some interest.
#Persistent #NoEnv CoordMode, Pixel, Screen joy9:: ;Hotkey PS_Lobby_Title := "PokerStars Lobby" WinMaximize , %PS_Lobby_Title% WinGetPos, X, Y, , , %PS_Lobby_Title% Loop, 17 { if(FindGame(X, Y, (A_Index - 1)*13) == 0) { break } } ;WinMinimize, %PS_Lobby_Title% return register() { PS_Lobby_Title := "PokerStars Lobby" Reg_Title := "Tournament Registration" buyin_check := "$16 Total." ;px := 676 ;py := 500 Postmessage, 0x201, 0x0001, ((500*65536)+676), , %PS_Lobby_Title% Postmessage, 0x202, 0, ((500*65536)+676), , %PS_Lobby_Title% SetTitleMatchMode 2 WinWait, %Reg_Title%, , 3 ControlGetText, buyin , Button1, %Reg_Title% if(buyin == buyin_check) { loop, 10 { ControlGet, Checked, Checked, , Button1, %Reg_Title% if(Checked == 0) { ControlClick, Button1 sleep, 200 } else { break } } loop, 10 { ControlGet, Visible, Visible, , Button4, %Reg_Title% if(Visible == 1) { ControlClick, Button4, %Reg_Title% sleep, 200 } } WinWait, PokerStars, Regist, 5 WinGetText, Text, PokerStars loop, 10 { ControlGet, Visible, Visible, , Button1, PokerStars if(Visible == 1) { ControlClick, Button1, PokerStars sleep, 200 } } if(Text == "Registration is closed") { return 1 } else { return 0 } } else { ControlClick, Button5 ; Click cancel return 1 } } ;// End Register FindGame(X, Y, YOffset) { Loop, 3 { PS_Lobby_Title := "PokerStars Lobby" ImageSearch, , Line, X+69, Y+233+YOffset, X+214, Y+233+YOffset, 15+1_%A_Index%.bmp if(ErrorLevel==0) { Line -= (Y+228) Postmessage, 0x201, 0x0001, ((Line*65536)+100), Afx:400000:28:10013:0:025, %PS_Lobby_Title% Postmessage, 0x202, 0, ((Line*65536)+100), Afx:400000:28:10013:0:025, %PS_Lobby_Title%e ImageSearch, , , X+637, Y+516, X+660, Y+539, Register.bmp if(ErrorLevel==0) { if(register()==0) { return 0 break } } } } } |
#2
|
|||
|
|||
Re: Stars SNG registration hotkey
Im interested in this, however I have no idea how to change these scripts. Im looking for a script to registrate the $10+1 and $20+2 SnG's. How do I change the script so it works for different buyins, and not the turbo SnG's? Thanks!
|
#3
|
|||
|
|||
Re: Stars SNG registration hotkey
whats your full setup? are you using an xbox controller?
|
#4
|
|||
|
|||
Re: Stars SNG registration hotkey
[ QUOTE ]
whats your full setup? are you using an xbox controller? [/ QUOTE ] I dont think im following you here? |
#5
|
|||
|
|||
Re: Stars SNG registration hotkey
[ QUOTE ]
whats your full setup? are you using an xbox controller? [/ QUOTE ] Gravis Xterminator |
#6
|
|||
|
|||
Re: Stars SNG registration hotkey
So would you be able to help me? How do I set up this piece of software to open the $10+1's and the $20+2's ?
|
#7
|
|||
|
|||
Re: Stars SNG registration hotkey
I'm very interested in this script. I've tried to get it working on my own without any success so far.
|
|
|