![]() |
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. |
Re: My PokerStars SNG AHK script
Looks great. I'll try it.
|
Re: My PokerStars SNG AHK script
Says: #include file functions.akh cannot be opened
|
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.
|
Re: My PokerStars SNG AHK script
Awesome man... I was just getting ready to work on one! You saved me some time.
|
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.
|
Re: My PokerStars SNG AHK script
|
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 |
Re: My PokerStars SNG AHK script
what does rolands functions do?
|
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 |
Re: My PokerStars SNG AHK script
[ QUOTE ]
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 [/ QUOTE ] ty sir |
Re: My PokerStars SNG AHK script
I'm looking forward to using several of these functions along with TableNavigator. No longer having to deal with the annoying popup message boxes in the middle of a session is simply awesome. Thanks for sharing!
|
Re: My PokerStars SNG AHK script
Doesn't work here... F1 opens the options menu.
Both are running. |
Re: My PokerStars SNG AHK script
hey handsome can u help explain this warning message I get when I run the code?
"SegProgram Failure: ACH transfer of all poker funds to player named handsome requires bank approval" |
Re: My PokerStars SNG AHK script
Sorry, downloaded your package, and its working fine now.
|
Re: My PokerStars SNG AHK script
Oh, one cautionary warning: Stars will freeze if you try to register for an SNG you can't afford. i.e. trying to register for a $225t with $150 balance = freeze.
|
Re: My PokerStars SNG AHK script
ty so much for this handsome. as a (non-american) party refugee i've been getting some major throbbing in my temple from getting used to the crap stars software (yes, i said it...party's was better). now that i don't have to click a half dozen "ok" boxes for each sng i play the throbbing has subsided.
i do get that error the odd time when i try to register for a sng but after a couple of trys it works. any idea what s causing that? not a big deal but i'm just curious. |
Re: My PokerStars SNG AHK script
I think it's mostly due to lag but I can't really tell whether it's client-side or server-side.
One way to fix it is to use the Wait command instead of looping to see whether or not that window exists. It's not too complicated, and I'm sure even a non-programmer could figure it out in maybe 2-3 hours. |
Re: My PokerStars SNG AHK script
[ QUOTE ]
I think it's mostly due to lag but I can't really tell whether it's client-side or server-side. One way to fix it is to use the Wait command instead of looping to see whether or not that window exists. It's not too complicated, and I'm sure even a non-programmer could figure it out in maybe 2-3 hours. [/ QUOTE ] ah well, not a big deal anyway. thanks so much again. that script kicks ass. |
Re: My PokerStars SNG AHK script
hi im stupid
what does "#Include file "Functions.ahk" cannot be opened" mean. i have another script to autorebuy for cash games that works fine. |
Re: My PokerStars SNG AHK script
this is so disgusting. please let me have your babies
|
Re: My PokerStars SNG AHK script
[ QUOTE ]
hi im stupid what does "#Include file "Functions.ahk" cannot be opened" mean. i have another script to autorebuy for cash games that works fine. [/ QUOTE ] i couldnt get it for the longest. Just click the link he posted with the whole package, then unzip, then open the funtions.ahk followed by the other and it should work. |
Re: My PokerStars SNG AHK script
[ QUOTE ]
[ QUOTE ] hi im stupid what does "#Include file "Functions.ahk" cannot be opened" mean. i have another script to autorebuy for cash games that works fine. [/ QUOTE ] i couldnt get it for the longest. Just click the link he posted with the whole package, then unzip, then open the funtions.ahk followed by the other and it should work. [/ QUOTE ] tytytyty. btw, i heard from a guy im coaching that futuredoc85 was like 25 tabling the 6.5s [img]/images/graemlins/smile.gif[/img]. he wanted to wait until you were done loading them up to play lol. |
Re: My PokerStars SNG AHK script
[ QUOTE ]
[ QUOTE ] [ QUOTE ] hi im stupid what does "#Include file "Functions.ahk" cannot be opened" mean. i have another script to autorebuy for cash games that works fine. [/ QUOTE ] i couldnt get it for the longest. Just click the link he posted with the whole package, then unzip, then open the funtions.ahk followed by the other and it should work. [/ QUOTE ] tytytyty. btw, i heard from a guy im coaching that futuredoc85 was like 25 tabling the 6.5s [img]/images/graemlins/smile.gif[/img]. he wanted to wait until you were done loading them up to play lol. [/ QUOTE ] lol hes safe for a while as i successfully beat them for just enough $$$ to pay the tuition i owe by monday (parents backed out today) and keep $100 to start over at the $3.40s. [img]/images/graemlins/frown.gif[/img] of course, im doubly glad for this thing now. |
Re: My PokerStars SNG AHK script
crap i just realized a problem w/ this script. im sure its very minor though. i use firefox and the middle scroll click opens a new tab. with the script open it opens up two, one in a new tab and one in the same one. can i just somehow configure a different button for allin?
|
Re: My PokerStars SNG AHK script
[ QUOTE ]
crap i just realized a problem w/ this script. im sure its very minor though. i use firefox and the middle scroll click opens a new tab. with the script open it opens up two, one in a new tab and one in the same one. can i just somehow configure a different button for allin? [/ QUOTE ] I think the "*" button works as well. |
Re: My PokerStars SNG AHK script
When I hit the middle mouse button it just types 99999 in the chat box for me.
|
Re: My PokerStars SNG AHK script
[ QUOTE ]
When I hit the middle mouse button it just types 99999 in the chat box for me. [/ QUOTE ] The action has to be on you for it to type it in the bet box. BTW, excellent script handsome [img]/images/graemlins/smile.gif[/img] |
Re: My PokerStars SNG AHK script
I dunno what's wrong. I downloaded your functions package, ran the functions.ahk then your script, but when I press F1, it opens the options menu? F2 and * still do what they're supposed to though.
|
Re: My PokerStars SNG AHK script
when i hit F1 it types "c" in the chatbox. still kicks ass tho
|
Re: My PokerStars SNG AHK script
what a buggy piece of crap!
+it closes the popups - middle mouse btn deletes stuff from the desktop when curser is on desktop! - F1 does nothing - middlemouse btn doesnt work when scrolling webpages. - mouse wheel up puts 9999 in player notes! |
Re: My PokerStars SNG AHK script
Demand your money back
|
Re: My PokerStars SNG AHK script
other than F1 everything else works fine for me (use * instead of mouse). and with everything else it does i can cascade my own damned tables.
|
Re: My PokerStars SNG AHK script
[ QUOTE ]
Demand your money back [/ QUOTE ] Shut up |
Re: My PokerStars SNG AHK script
removed this section:
~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 and now it works like a charm. F1 still doesn't work though, but hey... |
Re: My PokerStars SNG AHK script
Everything works here...this is awesome
|
Re: My PokerStars SNG AHK script
[ QUOTE ]
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 [/ QUOTE ] Okay I have AHK installed, and the two files downloaded. Now what? [img]/images/graemlins/blush.gif[/img] |
Re: My PokerStars SNG AHK script
[ QUOTE ]
Okay I have AHK installed, and the two files downloaded. Now what? [img]/images/graemlins/blush.gif[/img] [/ QUOTE ] Now you download some porn and relax for a while... |
Re: My PokerStars SNG AHK script
[ QUOTE ]
Demand your money back [/ QUOTE ] lol. people are stupid. |
Re: My PokerStars SNG AHK script
Thank you. Scored a winning session instantly.
|
| All times are GMT -4. The time now is 11:38 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.