Bet Pot
By _dave_ at 2+2 forums. The corresponding thread on 2+2 is here.
There will most likely be errors, problems etc. with this script - Please let me know about them so I may fix them - I can't fix a problem I do not know about
Saying that, I have tested quite a lot on all rooms, and it should be good. Take care and test at small stakes though.
MANY MANY THANKS ARE DUE to AHK Master Roland - Without his prior work, and kind permission to re-use it, Stars support would not have been possible.
Enjoy!
dave.
Version 0.21s:
This script creates a customizable "bet-pot" button for many popular online poker rooms - currently supported are the foillowing sites, with the following requirements / caveats:
Party Poker / Empire Poker
Full support at these rooms, no special instructions.
Both NL cash games and Tournies are fully supported.
You will need FPHG running to use on these platforms.
Poker Stars
Full support at this room, with caveats.
Both NL cash games and Tournies are fully supported.
The AHK code to manipulate this room relies heavily on image-recognition to determine many of the vales required to compute pot-bet amounts, current street, etc.
Currently, all sizes of table are supported but only on a select few themes - Most reliable is "Hyper-Simple" Theme, this should work all the time. If you encounter malfunction, please use Hyper-Simple theme and test if the problem still occurs. If so, please report it, if not, fix your theme.
Also working perfectly are any theme based upon "Poker Stars Default" Theme, or "No-Images" Theme (brown+gold fold/call/raise buttons) - but these require an alternative background to the default, in order to accurately determine the current street. This is not a huge problem (script will assume pre-flop), but a variable-tone background prevents the use of the single hotkey different pot fractions by street deature.
If you are using a custom theme, you may need to produce a set of images for use by the script.
Please download using the link below, and you will get a full set of images for use with normal or hyper-simple themes on Poker Stars.
Cryptologic
Full support at these rooms, although you will probably have to add the name of your chosen Crypto site in the "GroupAdd" section near the top of the script - use Windows' notepad to do this. I only have InterPoker and SunPoker installed, so these are supported by default. Add the names of other Crypto's if you want to use them with this script.
NL cash games are fully supported - Tournies may be, I do not know (yet to play a SNG on Crypto)
Prima Poker (Micro Gaming)
Full support at these rooms. Rake is calculated wrongly for the $NL20 games (10% rake, lol?)
NL cash games are fully supported - Tournies may be, I do not know (yet to play a SNG on Prima)
You will need chat set to either "Full Detail" or "No Player Chat" options for the Pot() function to work, although chat window need not be visible (mini-view, no chat works fine, as long as "Full Detail" etc. is selected when chat is visible).
Full Tilt
Full support at this room. Rake is not calculated for Full Tilt Poker. Treat with care, FT software can be laggy at times!!! Test thoroughly, check bets before confirmation (or use autobet).
Ultimate Bet
Experimental first effort - should be good, but use with extreme caution.
Please provide feedback in 2p2 thread.
Only tested myself so far on $10nl cash Hold'Em tables with good results.
iPoker
The chat options "dealer" and "player actions" need to be checked, others are optional. The script uses the mouse cursor to gather information and write the bet size, so it will occupy the mouse cursor when a hotkey is used.
Most of the testing has been done in 6max cash games using the full table view, but tournies and mini-tables should work too. To use the mini-view, set 'iPoker_miniview' to 1 near the beginning of the script.
If your iPoker skin doesn't have a white background for the bet size box, you need to change the variable 'Ipoker_BetBoxColor'. To find out what to set it to, set 'Ipoker_ShowBetBoxColor' to 1, wait until the bet box is visible and use the script to make a bet. This will pop up a message box with the value that 'Ipoker_BetBoxColor' needs to be set to.
Download Here
THIS IS NEW VERSION 0.21s DOWNLOAD
THE DOCUMENTATION ON THIS PAGE IS NOT VERY UPDATED
AND IS PROBABLY WRONG IN MANY PLACES
Read the AHK file / check settings / test @ micro stakes before real-money use.
Instructions
By default, the Hotkeys set up will be:
Middle (Wheel) Click: Bet full-pot(PRE) / full-pot(FLOP) / 3/4-pot(TURN) / 2/3-pot(RIVER), round to SB, 4xBB+1/limper if opening preflop, autobet off.
Right Click: Bet full-pot(PRE) / 3/4-pot(FLOP) / 2/3-pot(TURN) / 1/2-pot(RIVER), round to SB, 4xBB+1/limper if opening preflop, autobet off.
Wheel Up: +1BB to bet amount
Wheel Down: -1BB to bet amount
There are two functions to use when creating your own hotkeys, these take several parameters which infuence their behaviour.
These functions, and a description of their parameters are:
Pot(id, frac, round_bet, open_adjust, autobet)
id
never needs changed, should always be getid(), as in the default hotkeys.
frac
Fraction of the pot size to bet - THIS HAS CHANGED FROM PREVIOUS VERSIONS!!! This is now a string, to be enclosed in "quotes", and can take up to four different amounts. These amounts are seperated by a space. These differnt amounts correspond to pre-flop, flop, turn and river actions. If there is less than all four streets specified, the latest street will be used fo unspecified streets actions.
IMPORTANT: For some unknown reason, fractions must now be specified in DECIMAL notation, eg 0.666 for 2/3-pot.
It will not work any more with fractional notation. I do not know why.
As an example, from the default MButton hotkey, the frac parameter: "1 1 0.75 0.66" will bet full pot pre-flop and on the flop, 3/4 on the turn, and 2/3 on the river - a classic line I think you'll agree, but the choice is yours - edit however you like
round_bet
THIS HAS ALSO CHANGED FROM PREVIOUS VERSIONS!!!
This is the amount to round bet sizes to, but in order to gain extra functionality (requested by Sponger. I think), The behaviour has changed.
Options "smallblind" and "bigblind" are unchanged, and will round the bet size to these units.
While previously a value of 2 would round to 2 decimal places, now it will not - a value of 0.2 would accomplish this effect. This is so bet sizes can be rounded to arbitrary amounts, eg specify a round_bet of 5 in a $3/$6 game and all bets will become a multiple of 5 - I hope this is useful to some and does not cause any problems to others.
open_adjust
Amount in $$ to adjust pre-flop open-raise size, or one of two special options. These are "ssnl" - make a pre-flop openraise 4xBB + 1 / limper, or "tourney" 2.5BB + 1 / limper. Others can easily be added, if anyone has any suggestions, please let me know.
autobet
Set to 1 (one) to have the bet/raise button clicked for you automatically, set to 0 (zero) if you wish to click it yourself after reviewing / adjusting bet amounts.
AlterAmount(id, dir, frac, unit)
id
never needs changed, should always be getid(), as in the default hotkeys.
dir
Direction in which to alter the bet amount - specify "up" or "down".
frac
Fraction of the unit to change bet amount by.
unit
Unit of betting to alter the bet by per click - specify either a $ number, or "sb", or "bb". These can be multiplied etc. by changing the "frac" parameter.
Bet Pot AHK Script
Please use the download link above - it includes the neccesary images for use on Poker Stars. The code is the same as is listed here.
Version History
0.1 - Initial Release
0.1a - Correction to fix PokerStars after recent update - Edit6 changed to Edit7
0.1b - Correction of a rounding error that gave trouble at low stakes mainly.
Many misc updates....
0.2f (25-Jan-2007) - Fixes for FullTilt client update, a few other fixes also.
0.2g (29-Jan-2007) - Fixes for FullTilt client crashing when not your turn to act.
0.2h (22?-Mar-2007) - Fixes for PartyPoker client HHF format changes. Addition of Beta support for the FT resizeable tables beta.
0.2i (29-Mar-2007) - Fixes for PartyPoker (cope with unusual number formats). Sanity checks added for FTP to avoid unintentional overbets.
0.2j (30-Mar-2007) - Integration with Roland's fine TableNavigator script. Check it out if you haven't already
0.2k (03-Apr-2007) - Fix delayed action / Added safety checks on Full Tilt Poker
0.2l (18-Apr-2007) - Fixes for FullTilt client update. Addition of experimental UltimateBet support.
0.2m (18-Apr-2007) - Fixed "unusual" default hotkeys accidentally in last download... oops, sorry.
0.2n (09-June-2007) - Fixes for FullTilt client update. Adjustment to UltimateBet support. Addition of Betsafe, DTD, Littlewoods, & Parbet to default Crypto detection.
0.2o (01-July-2007) - Added iPoker support - HalvSame
0.2p (08-July-2007) - Fix for mouse wheel after PokerStars update
0.2q (03-Aug-2007) - Fixes for FullTilt client update. Hopeful streamlining of the FTP code. Seperation of hotkey configuration in to secondary AHK file for ease of upgrading in future.
0.2r (08-Aug-2007) - Fixes for PokerStars client update.
0.2s (12-Aug-2007) - iPoker fixes: No longer spams chat box when trying to bet out of turn. More reliable method to write bet amount (sending Home, Shift+End to highlight bet instead of using MouseClickDrag). Changed coordinates to use border/caption. - HalvSame -
0.21s (15-Aug-2007) - Minor iPoker fixes: tweaked bet box coordinates, make sure window is re-activated before critical operations if another window has stolen focus. -HalvSame-
Code
PLEASE USE DOWNLOAD ZIP FILE LINK ABOVE Latest version 0.21s
Joystick Analog Sticks / D-PAD Support
The following hack was taken from the 2+2 thread. It uses two timers: one for your Axis and one for your POV (sometimes used for the DPAD). At the top of BetPot-v0.2s.ahk add:
SetTimer, WatchAxis, 100 SetTimer, WatchPOV, 100
Note: The following is an example and only increases/decreases bets, with both the DPAD and the JOYR/U axis, obviously modify it to your needs. In the following code you will have to change JoyR and JoyU to the approriate joystick axis/button names. For more than one analog stick just duplicate the code from GetKeyState to return and change the axis names. To find out your axis names and what buttons are currently being pressed try: JoystickTest.ahk http://www.autohotkey.com/docs/scripts/JoystickTest.ahk
In your hotkeys file add and edit the following:
WatchAxis:
GetKeyState, Joyz, JoyR ; <-- EDIT to the axis you want to monitor
If Joyz < 25 ; Joyz is the variable name, JoyR is the Axis name. This example sets UP/DOWN
{ ; on the JoyR axis to change bet by a BB, and LEFT/RIGHT by a SB
AlterAmount(getid(),"up", 1, "bb")
}
If Joyz > 75
{
AlterAmount(getid(),"down", 1, "bb")
}
GetKeyState, Joyz, JoyU ; The left and right axis
If Joyz < 25
{
AlterAmount(getid(),"down", 1, "sb")
}
If Joyz > 75
{
AlterAmount(getid(),"up", 1, "sb")
}
return
WatchPOV: ; D-PAD (usually)
GetKeyState, JoyPOV, JoyPOV
If JoyPOV = 0
{
AlterAmount(getid(),"down", 1, "bb")
}
If JoyPOV = 18000
{
AlterAmount(getid(),"up", 1, "bb")
}
If JoyPOV = 9000 ;right
{
AlterAmount(getid(),"up", "1", "sb")
}
If JoyPOV = 27000 ;left
{
AlterAmount(getid(),"down", "1", "sb")
}
return
