Terms & Conditions

Internet Magazine

Non–US new players
Get five 2+2 books


Order Books
Book Translations
Forum Login
 
 
Expand All   Collapse All

 Two Plus Two 
2+2 Magazine Forum
Special Sklansky Forum
2+2 Pokercast
About the Forums

 General Poker Discussion 
Beginners Questions
Books and Publications
Televised Poker
News, Views, and Gossip
Brick and Mortar
Home Poker
Beats, Brags, and Variance
Poker Theory
Poker Legislation

 Coaching/Training 
StoxPoker
DeucesCracked

 German Forums 
Poker Allgemein
Strategie: Holdem NL cash
Strategie: Sonstige
Internet/Online
BBV
Small Talk
German Poker News

 French Forums 
Forum francophone
Strategie
BBV (French)

 Limit Texas Hold'em 
High Stakes Limit
Medium Stakes Limit
Small Stakes Limit
Micro Stakes Limit
Mid-High Short-handed
Small Stakes Shorthanded
Limit––>NL

 PL/NL Texas Hold'em 
High Stakes
Medium Stakes
Small Stakes
Micro Stakes
Small-High Full Ring
Micro Full Ring

 Tournament Poker 
Small Stakes MTT
High Stakes MTT
MTT Community
STT Strategy
Tournament Circuit

 Other Poker 
Omaha/8
Omaha High
Stud
Heads Up Poker
Other Poker Games

 General Gambling 
Probability
Psychology
Sports Betting
Other Gambling Games
Entertainment Betting

 Internet Gambling 
Internet Gambling
Internet Bonuses
Affiliates/RakeBack
Software

 2+2 Communities 
Other Other Topics
The Lounge: Discussion+Review
El Diablo's General Discussion
BBV4Life

 Other Topics 
Golf
Sporting Events
Politics
Business, Finance, and Investing
Travel
Science, Math, and Philosophy
Health and Fitness
Student Life
Puzzles and Other Games
Video Games
Laughs or Links!
Computer Technical Help
Sponsored Support Forums
RakebackNetwork
RakeReduction.com
Other Links
Books
Authors
Abbreviations
Calendar
Order Books
Books by Others
Favorite Links
Feedback
Advertising Information
Home
Posting Hints
Privacy Notice
Forum Archives

The 2+2 Forums

Before using this Forum, please refer to the Terms and Conditions (Last modified: 2/26/2006)

Be sure to read the   Two Plus Two Internet Magazine

This is an archive. The main forums are here

These forums are read only.


 
UBB.threads™ Groupee, Inc.

Tournament Poker >> STT Strategy

Pages: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | >> (show all)
Paul B.
handsome


Reged: 03/30/05
Posts: 5160
Loc: Thailand soon?
My PokerStars SNG AHK script
      #7731287 - 10/19/06 06:17 PM

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
}





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.


Post Extras: Print Post   Remind Me!   Notify Moderator  
darom03
don't call me, I'll call you


Reged: 09/10/05
Posts: 1314
Loc: Not USA!!! \o/
Re: My PokerStars SNG AHK script [Re: Paul B.]
      #7731316 - 10/19/06 06:19 PM

Looks great. I'll try it.

Post Extras: Print Post   Remind Me!   Notify Moderator  
darom03
don't call me, I'll call you


Reged: 09/10/05
Posts: 1314
Loc: Not USA!!! \o/
Re: My PokerStars SNG AHK script [Re: darom03]
      #7731433 - 10/19/06 06:29 PM

Says: #include file functions.akh cannot be opened

Post Extras: Print Post   Remind Me!   Notify Moderator  
Paul B.
handsome


Reged: 03/30/05
Posts: 5160
Loc: Thailand soon?
Re: My PokerStars SNG AHK script [Re: darom03]
      #7731513 - 10/19/06 06:35 PM

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.

Post Extras: Print Post   Remind Me!   Notify Moderator  
tshort
old hand


Reged: 05/28/05
Posts: 1143
Re: My PokerStars SNG AHK script [Re: Paul B.]
      #7731679 - 10/19/06 06:48 PM

Awesome man... I was just getting ready to work on one! You saved me some time.

Post Extras: Print Post   Remind Me!   Notify Moderator  
futuredoc85
flips in GOD MODE


Reged: 08/14/06
Posts: 9014
Loc: ATL
Re: My PokerStars SNG AHK script [Re: tshort]
      #7731713 - 10/19/06 06:52 PM

i cant find functions.ahk download on google or here or overcards, if anyone could link it that would be great.

Post Extras: Print Post   Remind Me!   Notify Moderator  
billxo1b
veteran


Reged: 01/06/05
Posts: 1519
Loc: xo1b
Re: My PokerStars SNG AHK script [Re: futuredoc85]
      #7731761 - 10/19/06 06:56 PM

rolands'function

Post Extras: Print Post   Remind Me!   Notify Moderator  
futuredoc85
flips in GOD MODE


Reged: 08/14/06
Posts: 9014
Loc: ATL
Re: My PokerStars SNG AHK script [Re: billxo1b]
      #7732144 - 10/19/06 07:30 PM

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.




i have no idea wtf to do


Post Extras: Print Post   Remind Me!   Notify Moderator  
darom03
don't call me, I'll call you


Reged: 09/10/05
Posts: 1314
Loc: Not USA!!! \o/
Re: My PokerStars SNG AHK script [Re: billxo1b]
      #7732145 - 10/19/06 07:30 PM

what does rolands functions do?

Post Extras: Print Post   Remind Me!   Notify Moderator  
Paul B.
handsome


Reged: 03/30/05
Posts: 5160
Loc: Thailand soon?
Re: My PokerStars SNG AHK script [Re: darom03]
      #7732329 - 10/19/06 07:47 PM

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


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | >> (show all)



Extra information
0 registered and 6 anonymous users are browsing this forum.

Moderator:  citanul, durron597, Mat Sklansky, DevinLake, Mike Haven 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 14903

Rate this topic

Jump to

contact us 2+2 Publishing

Powered by UBB.threads™ 6.5.5


Message Boards and Forums Directory

Pages provided by ConJelCo