|
Another AHK Poker Scripting "how to" post: Jam/Fold ToolTips for HU Tourney Play
I like AutoHotKey scripts. I taught myself (again), using a tutorial I mostly posted for my own use, since I only program stuff once every year or so and forget the ins and outs over time. My tutorial link is here, and it's not outdated.
Current project: Dad was ill-informed about HU jam/fold strategy. I gave him a chart, but then I had this idea to create ToolTips with AHK scripts. Then, if effective stacks are 8 bbs, hitting "Ctrl +8" would display the proper, narrowest shove and call ranges.
Code 1: For a laptop or those who want to use the numbers in the keyboard top row, not the number pad:
Code:
SendMode Input
;====
; Shove Fold Tool Tips
;====
q & 5::ToolTip, SHOVING RANGE => 15 bbs effective stacks `n----------`nP - 55`nA - AT A9s`n`n`nCALLING RANGE => 15 bbs effective stacks `n----------`nP - 88`nA - AQ
q & 2::ToolTip, SHOVING RANGE => 12 bbs effective stacks `n----------`nP - all`nA - A5 A2s`nK - KQ KJs`n`n`nCALLING RANGE => 12 bbs effective stacks `n----------`nP - 55`nA - AT A9s
^0::ToolTip, SHOVING RANGE => 10 bbs effective stacks `n----------`nP - all`nA - all`nK - KT K9s`nQ - QTs`nJ - JTs`n`n`nCALLING RANGE => 10 bbs effective stacks `n----------`nP - 33`nA - A8 A7s`nK - KQs
^8::ToolTip, SHOVING RANGE => 8 bbs effective stacks `n----------`nP - all`nA - all`nK - K6 K3s`nQ - QT Q9s`nJ - JTs`n`n`nCALLING RANGE => 8 bbs effective stacks `n----------`nP - all`nA - A3 A2s`nK - KT K9s`nQ - QJs
^6::ToolTip, SHOVING RANGE => 6 bbs effective stacks `n----------`nP - all`nA - all`nK - all`nQ - Q7 Q4s`nJ - J9 J8s`nT - T9s`n`n`nCALLING RANGE => 6 bbs effective stacks `n----------`nP - all`nA - all`nK - K7 K2s`nQ - QT Q9s`nJ - JTs
^4::ToolTip, SHOVING RANGE => 4 bbs effective stacks `n----------`nP - all`nA - all`nK - all`nQ - all`nJ - J6 J2s`nT - T7 T6s`n9 - 98`n8 - 87s`n`n`nCALLING RANGE => 4 bbs effective stacks `n----------`nP - all`nA - all`nK - all`nQ - all`nJ - J7 J3s`nT - T8 T6s`n9 - 98 96s`n8 - 87s`n6 - 65s`n5 - 54s
^3::ToolTip, SHOVING RANGE => 3 bbs effective stacks `n----------`nP - all`nA - all`nK - all`nQ - all`nJ - J3 J2s`nT - T6 T3s`n9 - 97 95s`n8 - 87 86s`n`n`nCALLING RANGE => 3 bbs effective stacks `n----------`nP - all`nA - all`nK - all`nQ - all`nJ - all`nT - all`n9 - all`n8 - all`n7 - 76 75s`n6 - 64 64s`n5 - 54 54s`n4 - 43s`n3 - 32s
^2::ToolTip, SHOVING RANGE => 2 bbs effective stacks `n----------`nP - all`nA - all`nK - all`nQ - all`nJ - all`nT - all`n9 - all`n8 - 85 83s`n7 - 76`n6 - 65s`n5 - 54s`n`n`nCALLING RANGE => 2 bbs effective stacks `n----------`n`nANY TWO WILL DO!!
;====
; Destroying the tool tips with a "blank text" ToolTip
;====
^X::ToolTip,
An as example of what it does, here is the ToolTip that pops up near the cursor when you press Ctrl+6.
SHOVING RANGE => 6 bbs effective stacks
----------
P - all
A - all
K - all
Q - Q7 Q4s
J - J9 J8s
T - T9s
CALLING RANGE => 6 bbs effective stacks
----------
P - all`
A - all`
K - K7 K2s
Q - QT Q9s
J - JTs
The hotkeys created are as follows:
- Ctrl + 2: Shove/call for 2 bbs effective stacks
- Ctrl + 3: Shove/call for 3 bbs effective stacks
- Ctrl + 4: Shove/call for 4 bbs effective stacks
- Ctrl + 6: Shove/call for 6 bbs effective stacks
- Ctrl + 8: Shove/call for 8 bbs effective stacks
- Ctrl + 0: Shove/call for 10 bbs effective stacks
- q & 2 (simul): Shove/call for 12 bbs effective stacks
- q & 5 (simul): Shove/call for 15 bbs effective stacks
Notes:
- I got the ranges from a book and tweaked them based on my game play. I'm not posting this as a guide to jam/fold (except for my Dad), just a way to display information we want at the tables.
- The tool tips stay put forever. The last tool tip (Ctrl+X) is just blank text which "destroys" the last tool tip and leaves the screen normal.
- The top two hotkeys demonstrate a cool feature: the letter key "q" becomes like the Ctrl button. Since Ctrl+2 is already taken (2 bbs effective stacks), I needed something besides the control button. There are other options, but I like this one: having the dual button hotkey of "q & 2::" means that you press and hold the Q key while pressing the 2.
- Like most tool tips, these display with the top-right corner of the tool tip box a few pixels from your current cursor position, so place the mouse where you want the tool tip before hitting the hotkey.
The next code is for those (like me) who to access this from the number pad. Here, the number pad's decimal key works like "Ctrl" for the single digit stacks, and the * multiplication key on the number pad gets us the 10, 12 and 15 bbs stack info.
Code:
SendMode Input
;====
; Shove / Fold ToolTips
;====
NumpadMult & Numpad5::ToolTip, SHOVING RANGE => 15 bbs effective stacks `n----------`nP - 55`nA - AT A9s`n`n`nCALLING RANGE => 15 bbs effective stacks `n----------`nP - 88`nA - AQ
NumpadMult & Numpad2::ToolTip, SHOVING RANGE => 12 bbs effective stacks `n----------`nP - all`nA - A5 A2s`nK - KQ KJs`n`n`nCALLING RANGE => 12 bbs effective stacks `n----------`nP - 55`nA - AT A9s
NumpadMult & Numpad0::
NumpadDot & Numpad0::
ToolTip, SHOVING RANGE => 10 bbs effective stacks `n----------`nP - all`nA - all`nK - KT K9s`nQ - QTs`nJ - JTs`n`n`nCALLING RANGE => 10 bbs effective stacks `n----------`nP - 33`nA - A8 A7s`nK - KQs
return
NumpadDot & Numpad8::ToolTip, SHOVING RANGE => 8 bbs effective stacks `n----------`nP - all`nA - all`nK - K6 K3s`nQ - QT Q9s`nJ - JTs`n`n`nCALLING RANGE => 8 bbs effective stacks `n----------`nP - all`nA - A3 A2s`nK - KT K9s`nQ - QJs
NumpadDot & Numpad6::ToolTip, SHOVING RANGE => 6 bbs effective stacks `n----------`nP - all`nA - all`nK - all`nQ - Q7 Q4s`nJ - J9 J8s`nT - T9s`n`n`nCALLING RANGE => 6 bbs effective stacks `n----------`nP - all`nA - all`nK - K7 K2s`nQ - QT Q9s`nJ - JTs
NumpadDot & Numpad4::ToolTip, SHOVING RANGE => 4 bbs effective stacks `n----------`nP - all`nA - all`nK - all`nQ - all`nJ - J6 J2s`nT - T7 T6s`n9 - 98`n8 - 87s`n`n`nCALLING RANGE => 4 bbs effective stacks `n----------`nP - all`nA - all`nK - all`nQ - all`nJ - J7 J3s`nT - T8 T6s`n9 - 98 96s`n8 - 87s`n6 - 65s`n5 - 54s
NumpadDot & Numpad3::ToolTip, SHOVING RANGE => 3 bbs effective stacks `n----------`nP - all`nA - all`nK - all`nQ - all`nJ - J3 J2s`nT - T6 T3s`n9 - 97 95s`n8 - 87 86s`n`n`nCALLING RANGE => 3 bbs effective stacks `n----------`nP - all`nA - all`nK - all`nQ - all`nJ - all`nT - all`n9 - all`n8 - all`n7 - 76 75s`n6 - 64 64s`n5 - 54 54s`n4 - 43s`n3 - 32s
NumpadDot & Numpad2::ToolTip, SHOVING RANGE => 2 bbs effective stacks `n----------`nP - all`nA - all`nK - all`nQ - all`nJ - all`nT - all`n9 - all`n8 - 85 83s`n7 - 76`n6 - 65s`n5 - 54s`n`n`nCALLING RANGE => 2 bbs effective stacks `n----------`n`nANY TWO WILL DO!!
;====
; Destroying the tool tips with a "blank text" ToolTip
;====
^X::ToolTip,
In bold, the third hotkey down, you can see the technique for making several hotkey sequences for the same action. Since I may forget whether it's "dot 0" or "asterisk 0" to display the 10 bbs stacks info, I just made both hotkeys active for the same ToolTip. The "return" ends the hotkey sequence, but it's only needed when there's a series of commands. The other hotkey codes are single line commands that stand alone and don't need it.
FTR does not allow us to post AHK scripts as attachments. They are just text files, but you can copy-paste more easily than downloading. The instructions for downloading and installing AutoHotKey are in the tutorial link I posted above.
Cheers, and good luck at the tables.
|