Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Tournament Poker > STT Strategy
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #23  
Old 03-12-2007, 12:04 AM
NU Star NU Star is offline
Senior Member
 
Join Date: Nov 2006
Posts: 4,923
Default Re: My PokerStars SNG AHK script

[ QUOTE ]
My previous post has the fix I did. I combined the two scripts and it works goot:

[ QUOTE ]
#NoEnv
#Persistent
#SingleInstance force
#Include %a_scriptDir%
#Include Functions.ahk

interval = 100 ; period between refreshes

Loop
{
AutoRegister()
NoMsgBox()
Sleep %interval%
}

F1:: ;__Cascades tables
PostStarsClick(450, 60, ExFromList(tablesStars()))
SendPlay c
return

F2:: ;__Closes tournament lobbies
CloseTournamentLobby()
return

~MButton:: ;__Pushes all-in
MouseGetPos,,, curWin
ControlSetText, Edit7, 999999, ahk_id%curWin%
return

~RButton::
WinGet,id,,A
WinGetTitle, title, ahk_id%id%

IfInString, title, No Limit Hold'em
{
Slash := Instr(title, "/") + 2
Space := Instr(title, " ", false, Slash)
BBLength := Space - Slash
StringMid, Bigblind, title, Slash, BBLength
Transform, RaiseAmount, Round, Bigblind * 2.5

MouseGetPos,,, curWin
ControlSetText, Edit7, %RaiseAmount%, ahk_id%curWin%
}
return


Autoregister()
{
SetTitleMatchMode 2
IfWinExist, Tournament Registration
ControlClick, Button1
ControlClick, OK
}

CloseTournamentLobby()
{
Loop {
SetTitleMatchMode 2
IfWinExist, Lobby,, PokerStars Lobby
WinClose
else
break
}
}

NoMsgBox()
{
IfWinExist, PokerStars, OK
WinClose
IfWinExist, PokerStars, Internal
Sleep 500
WinClose, PokerStars, Internal
return
}


[/ QUOTE ]

[/ QUOTE ]

Did recent stars updates also screw up the F2 to close all tourney lobby features? Also, how can I edit it so that the only pop-up window I still get is the one that tells me I've been eliminated from the tourney.

Thanks
Reply With Quote
 


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 02:54 AM.


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