View Single Post
  #348  
Old 11-30-2007, 06:48 PM
Xanderz Xanderz is offline
Senior Member
 
Join Date: Oct 2007
Posts: 230
Default Re: PokerPad - AHK hotkey script

[ QUOTE ]
For what reason (other than clicking it) do you need to interact with the raise button?

[/ QUOTE ]
For Party (and the majority of other sites) I use the following function to determine the pot bet size:
<font class="small">Code:</font><hr /><pre>GetBet(factor, pot, call, raise, blind) {
if call {
pot += call
if (call &lt; blind) { ; small blind
bet := blind
} else { ; raise or open bet preflop
bet := raise - call
if (call &gt; bet)
bet := call
}
} else if (raise != blind) { ; big blind
bet := blind
} else { ; open bet postflop
bet := 0
}
pot *= factor
return bet + pot
}</pre><hr />
The raise variable is suppose to be the minimum raise and is used in two different places in that function to get the correct amount.
Reply With Quote