![]() |
#23
|
|||
|
|||
![]()
[ 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 |
|
|