Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-07-2006, 03:05 AM
Mark1978 Mark1978 is offline
Senior Member
 
Join Date: Jul 2005
Location: Stars Turbo $27s
Posts: 683
Default 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
}
}
}
}
}
Reply With Quote
  #2  
Old 12-07-2006, 07:33 AM
netstorm netstorm is offline
Senior Member
 
Join Date: Jun 2006
Location: Netherlands
Posts: 902
Default 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!
Reply With Quote
  #3  
Old 12-07-2006, 11:19 AM
Theo_Brixton Theo_Brixton is offline
Senior Member
 
Join Date: Sep 2006
Location: Bloggin at Taint Mansion
Posts: 495
Default Re: Stars SNG registration hotkey

whats your full setup? are you using an xbox controller?
Reply With Quote
  #4  
Old 12-07-2006, 12:43 PM
netstorm netstorm is offline
Senior Member
 
Join Date: Jun 2006
Location: Netherlands
Posts: 902
Default Re: Stars SNG registration hotkey

[ QUOTE ]
whats your full setup? are you using an xbox controller?

[/ QUOTE ]

I dont think im following you here?
Reply With Quote
  #5  
Old 12-07-2006, 01:34 PM
Mark1978 Mark1978 is offline
Senior Member
 
Join Date: Jul 2005
Location: Stars Turbo $27s
Posts: 683
Default Re: Stars SNG registration hotkey

[ QUOTE ]
whats your full setup? are you using an xbox controller?

[/ QUOTE ]

Gravis Xterminator
Reply With Quote
  #6  
Old 12-07-2006, 02:02 PM
netstorm netstorm is offline
Senior Member
 
Join Date: Jun 2006
Location: Netherlands
Posts: 902
Default 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 ?
Reply With Quote
  #7  
Old 12-07-2006, 04:40 PM
Gnumsploitz Gnumsploitz is offline
Senior Member
 
Join Date: Sep 2004
Location: San Jose, CA
Posts: 120
Default 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.
Reply With Quote
Reply


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 04:54 PM.


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