Select Page
Poker Forum
Over 1,291,000 Posts!
Poker ForumPoker News, Reviews, Tools

More AHK Scripts

Results 1 to 5 of 5
  1. #1

    Default More AHK Scripts

    I started a thread a few months back about creating basic AHK scripts to enhance our poker experience. I was inspired by Rage and Naka's epic Stacked Table Manager scripts.

    Anyway, the better you get at these the more you can do. My latest effort is to create poker notetaking hotscripts, or short text codes that write out strings of text. Here's the code:

    Code:
    #IfWinExist ahk_class #32770 
    ; ===================
    ;Line above allows Hotscripts only to work when HEM's player note window is open (The "ahk_class #32770" was found using Window Spy).
    ; ===================
    
    {
    
    #Hotstring c *
    
    ::rad::Make reads and adjusts
    ::2pp::Will not stack off w/o 2 pair or better
    ::sol::Stack off light
    ::tbf::3 bets light/folds often
    
    ::sfd::Flop shove w/ 8-out draw +
    ::tba::Can 2-barrel air 
    ::tp3::Cbets all 3 streets as PFR with TPGK w/o improving
    ::tp2::Cbets 2 streets as PFR with TPGK, then shuts down
    ::c2x::Calls two extra streets of value
    
    ::rbb::Bluffs river with big bet (2/3's psb or more)
    ::rbs::Bluffs river with small bet
    
    ::bvb::blind vs. blind
    
    }
    Code Notes

    1. The "Hotkey" command option "c" makes the hotstrings case sensitive, while the option * means you don't have to press ENTER or SPACE after the last letter - as soon as the 3rd letter of the hotstring is typed, the computer replaces it with the text string.
    2. You place the hotstring inside two double colons and the text to insert after the second double colon
    3. Several of the hotstrings above can be used together: "sol bvb" would type "Stacks off light blind vs blind" which I can follow with what hand/board it happened on.

    Also, for anyone who's interested, I've been tweaking my auto-betting script. Here's the latest version:

    Code:
    Process, Priority,,High
    #IfWinActive ahk_class QWidget
    
    ;==============================
    ;  PREFLOP : Opens 3.5BB or BetPot
    ;==============================
    MButton::SendPlay {Click 750,450}{Click 750,550}{Click 550,545,0}
    
    ;==============================
    ;  PREFLOP : Opens 3BB or 4BB
    ;==============================
    ^MButton::SendPlay {Click 750,475,2}1.5{Enter}{Click 550,545,0}
    ^RButton::SendPlay {Click 750,475,2}2{Enter}{Click 550,545,0}
    
    ;==============================
    ;  PREFLOP : Quick ReSteal 9.5B
    ;==============================
    LWin::SendPlay {Click 750,475,2}4.25{Enter}{Click 550,545,0}
    LAlt::SendPlay {Click 750,475,2}4.75{Enter}{Click 550,545,0}
    
    ;==============================
    ;  QUICK FLOP : RtClick Auto Bets $2, $2.50, $3 ...
    ;==============================
    RAlt::SendPlay {Click 750,475,2}2.5{Enter}{Click 550,545,0}
    ^RAlt::SendPlay {Click 750,475,2}2.75{Enter}{Click 550,545,0}
    RWin::SendPlay {Click 750,475,2}3{Enter}{Click 550,545,0}
    ^RWin::SendPlay {Click 750,475,2}3.25{Enter}{Click 550,545,0}
    RControl::SendPlay {Click 750,475,2}3.5{Enter}{Click 550,545,0}
    ^RControl::SendPlay {Click 750,475,2}3.75{Enter}{Click 550,545,0}
    
    ;==============================
    ;  FLOP : NumPad Auto Bets $5, $6, $7 ...
    ;==============================
    Numpad1::SendPlay {Click 750,475,2}1{Enter}{Click 550,545,0}
    Numpad2::SendPlay {Click 750,475,2}2{Enter}{Click 550,545,0}
    Numpad3::SendPlay {Click 750,475,2}3{Enter}{Click 550,545,0}
    ^Numpad3::SendPlay {Click 750,475,2}3.5{Enter}{Click 550,545,0}
    Numpad4::SendPlay {Click 750,475,2}4{Enter}{Click 550,545,0}
    ^Numpad4::SendPlay {Click 750,475,2}4.5{Enter}{Click 550,545,0}
    Numpad5::SendPlay {Click 750,475,2}5{Enter}{Click 550,545,0}
    ^Numpad5::SendPlay {Click 750,475,2}5.5{Enter}{Click 550,545,0}
    Numpad6::SendPlay {Click 750,475,2}6{Enter}{Click 550,545,0}
    NumpadAdd::SendPlay {Click 750,475,2}6.5{Enter}{Click 550,545,0}
    Numpad7::SendPlay {Click 750,475,2}7{Enter}{Click 550,545,0}
    Numpad8::SendPlay {Click 750,475,2}8{Enter}{Click 550,545,0}
    Numpad9::SendPlay {Click 750,475,2}9{Enter}{Click 550,545,0}
    Numpad0::SendPlay {Click 750,475,2}10{Enter}{Click 550,545,0}
    ^NumpadDot::SendPlay {Click 750,475,2}11{Enter}{Click 550,545,0}
    ^+NumpadDot::SendPlay {Click 750,475,2}12{Enter}{Click 550,545,0}
    NumpadDot::SendPlay {Click 750,475,2}13{Enter}{Click 550,545,0}
    NumLock::SendPlay {Click 750,475,2}15{Enter}{Click 550,545,0}
    NumpadDiv::SendPlay {Click 750,475,2}17.5{Enter}{Click 550,545,0}
    NumpadMult::SendPlay {Click 750,475,2}20{Enter}{Click 550,545,0}
    NumpadSub::SendPlay {Click 750,475,2}22.25{Enter}{Click 550,545,0}
    Notes
    1. The InWinActive ahk_class QWidget statement only allows the hotkeys to be active when a Full Tilt window is active.
    2. I have all my preflop actions on the mouse and on the bottom row of the keyboard around the space bar. I'm using Rage/Naka's Table Stack Manager, which uses the spacebar to move tables around.

    None of my code is elaborate - I just created scripts for the tasks I do all the time. SendPlay seems to optimize speed while lessening the visual distractions (better than SendInput, which is what I was using before).

    Check the other threads for more interesting material and help getting started. Let me know if I can help you learn how to do something with AHK scripts. I'll try to help.
  2. #2
    This is definitely the nuts! Nice work-around for the Spacebar problem.
  3. #3
    Quote Originally Posted by Nakamura
    This is definitely the nuts! Nice work-around for the Spacebar problem.
    You're like Dr. Frankenstein - you and Rage created a monster. I'm enjoying this AHK stuff!!

    I like making my own poker tools. You get your game system set up, and then forge a couple of scripts to help your game.

    The generics are expensive, easily outdated by your site's upgrades and when there are updates, you have to wait for someone else to code them. I know that other programs are more seamless, but I can 12 table 6max (at 10nl, not at my real stakes) with this system and have time for reads and notes and exploitative play. And it didn't cost me anything except some time learning AHK.
  4. #4
    Personally I coughed up $25 for TableNinja - but it's a lot more expensive now. Check out StarsHotKeys though. You can download the AHK script and you may be able to adapt some of the code for FT.
  5. #5
    Nice scripts, Robb.

    I agree with you that everybody should at least try and learn the basics of AHK. Then, you can modify existing scripts to suit your own needs, and the more you learn, the more interesting it becomes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •