![]() |
#1
|
|||
|
|||
![]()
I am trying to get the AHK bet the pot script to do something and I can not figure it out.
What I want it to do is bet only whole numbers. So for example when the pot is $44.35 it bets $44. Or when I bet 2/3's pot it will round to the nearest whole number. How do I go about doing this? Also, a quick question about mouse buttons. I have a microsoft optical mouse, which has 1 button on both the left and right SIDE of the mouse (not tablking about the top). So how do I change commands so I can make use of these extra buttons? Thanks |
#2
|
|||
|
|||
![]()
Figured out the first part for betting whole numbers. Now what I am wondering is insted of always betting the pot (which includes the rake) ... How do I set it up so it will bet the pot minus the rake?
So for example if the pot is 14.50 (with .50 rake being taken out) AHK will bet $15 when I would really like it to bet $14. Sorry for being nitpickey, but is this possible?? Also still wondering about the other buttons from the question above. Thanks |
#3
|
|||
|
|||
![]()
You have to set the 5th parameter of this function to 1 to deduct the rake from the pot calculation:
Pot(id, 1, 2, 1, <font color="red">1 </font> , "ssnl") |
#4
|
|||
|
|||
![]()
[ QUOTE ]
You have to set the 5th parameter of this function to 1 to deduct the rake from the pot calculation: Pot(id, 1, 2, 1, <font color="red">1 </font> , "ssnl") [/ QUOTE ] This is correct [img]/images/graemlins/smile.gif[/img] Also, as you have likely already discovered, the third parameter controls the # of decimal places to round bet sizes to - setting this to zero will result in bets in only whole $ amounts, e.g.: [ QUOTE ] Pot(id, 1, <font color="red">0</font>, 1, 1, "ssnl") [/ QUOTE ] The left/right side buttons on your Microsoft mouse are probably known as XButton1:: and XButton2:: to AHK scripts. Good Luck, dave. |
![]() |
|
|