#1
|
|||
|
|||
Can someone help with this AHK script
I am trying to create a simple script for ABsolutepoker that will run in the background. I want it to hit fold whenever I hit fold but I have the option to check. Kind of like how the force fold works in the Stars Autoplanner. When I click fold, with the option to check a POP UP Window comes up that warns me I have the option to check for free. So I can ran the Autoscript writer to mimic my mouse motion when that window comes up to click fold. Here is what I got so far:
WinWait, Info, Checking is free. Ar IfWinNotActive, Info, Checking is free. Ar, WinActivate, Info, Checking is free. Ar WinWaitActive, Info, Checking is free. Ar MouseClick, left, 191, 83 Sleep, 100 How Do I make this loop and always run in the background so it will click that button? I have never written a script before and figured I'd try this simple task. Any help would be appreciated. |
#2
|
|||
|
|||
Re: Can someone help with this AHK script
Hi,
Athe the simplest, just wrap it in a "Loop { code }" construct, like this: <font class="small">Code:</font><hr /><pre> Loop { WinWait, Info, Checking is free. IfWinNotActive, Info, Checking is free. WinActivate, Info, Checking is free. WinWaitActive, Info, Checking is free. MouseClick, left, 191, 83 Sleep, 100 } </pre><hr /> (I don't know what the "Ar" is for, so I removed them). Without Absolute myself, I can't tell if this works, though... try it [img]/images/graemlins/smile.gif[/img] Edited to add: Probably better to use a timer if you ever want to add other dialogs to this script. Check out the SetTimer function. Edit again: If using a timer, you probably want to use IfWinExist rather than WinWait. dave. |
#3
|
|||
|
|||
Re: Can someone help with this AHK script
thanks dave, much appreciated!!
|
#4
|
|||
|
|||
Re: Can someone help with this AHK script
it works perfect! Thanks again
|
|
|