Two Plus Two Newer Archives  

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

Reply
 
Thread Tools Display Modes
  #1  
Old 10-19-2006, 06:17 PM
Paul B. Paul B. is offline
Senior Member
 
Join Date: Mar 2005
Location: Thailand soon?
Posts: 5,160
Default My PokerStars SNG AHK script

So I wrote a script that helps me while I'm playing 12-20 tables continuously. Originally I didn't wanna share this, as this would help multi-tablers become more efficient, thus costing me money. BUT for my own reasons I've decided to stop playing SNGs, at least for the time being, so releasing this will not affect me.

Here's the code first, I'll explain later:
[ 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
NumpadMult::
MouseGetPos,,, curWin
ControlClick, x623 y471, Tournament ;
WinActivate, ahk_id %curWin%
Send {del 5}
WinActivate, ahk_id %curWin%
Send 99999
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, Registered
WinClose, PokerStars, Registered
IfWinExist, PokerStars, Unregistered
WinClose, PokerStars, Unregistered
IfWinExist, PokerStars, Registration closed
WinClose, PokerStars, Registration closed
IfWinExist, PokerStars, Welcome to tournament
WinClose, PokerStars, Welcome to tournament
IfWinExist, PokerStars, You finished the tournament
WinClose, PokerStars, You finished the tournament
IfWinExist, PokerStars, You have won
WinClose, PokerStars, You have won
IfWinExist, PokerStars, Internal
Sleep 500
WinClose, PokerStars, Internal
return
}


[/ QUOTE ]

For anyone not familiar, this is an AutoHotKey (AHK) script. If you don't have AHK, go to autohotkey.com and download it. Then after installing, right-click -> New -> AutoHotKey script. Right-click that file, click Edit, paste the code and save. Open the file whenever you wanna use it and a green box with an H will show up in your systray indicating that it's open. Right-click -> close the script when you're done.

Okay, here's what it does:

1) Pressing F1 cascades the tables. Yes, I cascade my tables. It helps a lot when playing more than 12 tables at a time. I use this whenever I bust out, to keep my tables in order and I don't want a new table filling into the spot of the one I busted.

2) Pressing F2 closes tournament lobbies. Originally I wanted to close them automatically, but my code sometimes closed SNGs when they popped up. It's an issue with Stars tables stealing focus, I don't know how to get around it but if you're handy with AHK I'm sure you'll figure it out.

3) Pressing the * button or pushing the mouse wheel down will set the bet amount to 99999 (allin obv). You have to press ENTER or click Raise to push. This only works for regular sized tables. Comes in handy, not having to slide the slider all the way to the right every time you wanna push, esp during the end game.

4) Automatically helps register for tournaments. It doesn't auto-register for you. You have to click the Register button, and it recognizes the buyin window and buys in for you. Sometimes it screws up and gives an "Internal Error" message, so you have to click Register again.

5) Closes all messageboxes, "Registered", "Welcome to tournament...", "You have finished the tournament...", "You have won", etc.

That is all. Hope you guys enjoy using my script.
Reply With Quote
  #2  
Old 10-19-2006, 06:19 PM
darom03 darom03 is offline
Senior Member
 
Join Date: Sep 2005
Location: Not USA!!! \\o/
Posts: 1,314
Default Re: My PokerStars SNG AHK script

Looks great. I'll try it.
Reply With Quote
  #3  
Old 10-19-2006, 06:29 PM
darom03 darom03 is offline
Senior Member
 
Join Date: Sep 2005
Location: Not USA!!! \\o/
Posts: 1,314
Default Re: My PokerStars SNG AHK script

Says: #include file functions.akh cannot be opened
Reply With Quote
  #4  
Old 10-19-2006, 06:35 PM
Paul B. Paul B. is offline
Senior Member
 
Join Date: Mar 2005
Location: Thailand soon?
Posts: 5,160
Default Re: My PokerStars SNG AHK script

Oh yea, you need Roland's Functions.ahk. I think it's on overcards.com somewhere. If not, it can be found via 2+2 search or google search.
Reply With Quote
  #5  
Old 10-19-2006, 06:48 PM
tshort tshort is offline
Senior Member
 
Join Date: May 2005
Posts: 1,143
Default Re: My PokerStars SNG AHK script

Awesome man... I was just getting ready to work on one! You saved me some time.
Reply With Quote
  #6  
Old 10-19-2006, 06:52 PM
futuredoc85 futuredoc85 is offline
Senior Member
 
Join Date: Aug 2006
Location: ATL
Posts: 9,014
Default Re: My PokerStars SNG AHK script

i cant find functions.ahk download on google or here or overcards, if anyone could link it that would be great.
Reply With Quote
  #7  
Old 10-19-2006, 06:56 PM
billxo1b billxo1b is offline
Senior Member
 
Join Date: Jan 2005
Location: xo1b
Posts: 1,519
Default Re: My PokerStars SNG AHK script

rolands'function
Reply With Quote
  #8  
Old 10-19-2006, 07:30 PM
futuredoc85 futuredoc85 is offline
Senior Member
 
Join Date: Aug 2006
Location: ATL
Posts: 9,014
Default Re: My PokerStars SNG AHK script

ok sorry for being so retarded, i copied and pasted roland's function into notepad and saved it, then i tried to open AHK and it gave the error mentioned above. So i converted functions.ahk to .exe and then tried to open AHK and got the same error. So i converted the above into .exe and when i tried to open it i got

[ QUOTE ]
error: call to nonexistent function.
Specifically: PostStarsClick(450, 60, ExFromList(tablesStars()))
Line#
019:PostStarsClick(450, 60, ExFromList(tablesStars()))

this program will exit.

[/ QUOTE ]

i have no idea wtf to do
Reply With Quote
  #9  
Old 10-19-2006, 07:30 PM
darom03 darom03 is offline
Senior Member
 
Join Date: Sep 2005
Location: Not USA!!! \\o/
Posts: 1,314
Default Re: My PokerStars SNG AHK script

what does rolands functions do?
Reply With Quote
  #10  
Old 10-19-2006, 07:47 PM
Paul B. Paul B. is offline
Senior Member
 
Join Date: Mar 2005
Location: Thailand soon?
Posts: 5,160
Default Re: My PokerStars SNG AHK script

It's just a library of functions. You need to copy/paste it as "functions.ahk"

For ease I've uploaded the complete package. Here's the link. GO DONKS GO
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 02:35 AM.


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