|
#1
|
|||
|
|||
Changing default bet sizes on Party
When using the BetPot script preflop we can press a button and it calls the function Pot and we can change the settings so it doesn't bet the amount, but it displays the amount for adjustment.
<font color="blue"> ~RButton:: id := getid() IfWinExist, ahk_id%id% ahk_group tables { Pot(id, 1, 2, 0, 1, "ssnl") } return </font> How can I call this function automatically when the table becomes active and awaits my action? I've tried using a timer that repeats calling the function, but it doesn't work. <font color="red"> #Persistent SetTimer, Alert1, 500 return Alert1: WinGet ID, ID IfWinExist, ahk_id%id% ahk_group tables { Pot(id, 1, 2, 0, 1, "ssnl") } return</font> Any ideas or solutions are appreciated. |
#2
|
|||
|
|||
Re: Changing default bet sizes on Party
The same question was just asked in the overcards.com AHK forum (or are you the same guy?)
|
#3
|
|||
|
|||
Re: Changing default bet sizes on Party
I'm working with him, but I'm not getting the timer to work. IE, I need something to work off of since I don't know the AHK language very well.
|
#4
|
|||
|
|||
Re: Changing default bet sizes on Party
It's not that easy actually, since you have to ensure that you only change it once per street. I think the easiest way to go about it is to
Loop { - Wait for the edit to become visible - Set text - Wait for edit to become hidden } Or rather use a timer to be able to handle more than one table. |
|
|