Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-15-2006, 06:06 PM
Cueballmania Cueballmania is offline
Senior Member
 
Join Date: Sep 2005
Posts: 2,000
Default 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.
Reply With Quote
  #2  
Old 08-15-2006, 07:06 PM
Roland Roland is offline
Senior Member
 
Join Date: Mar 2005
Location: Norwich, UK
Posts: 2,703
Default 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?)
Reply With Quote
  #3  
Old 08-15-2006, 07:11 PM
Cueballmania Cueballmania is offline
Senior Member
 
Join Date: Sep 2005
Posts: 2,000
Default 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.
Reply With Quote
  #4  
Old 08-16-2006, 08:51 AM
Roland Roland is offline
Senior Member
 
Join Date: Mar 2005
Location: Norwich, UK
Posts: 2,703
Default 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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:49 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.