Page 1 of 1

Button ready for pressing

Posted: Fri Apr 30, 2004 8:49 pm
by BrainDeath
This in in reply to the thread that was moved:
http://macroquest2.com/phpBB2/viewtopic.php?t=6544

Lax helped me to figure this one out.

For those of you who want to wait for the button to become available and then press it use .Enabled.

The combine button on the new Tradeskill window for example, to press it when it becomes available you would use:

Code: Select all

:Loop 
   /if (!${Window[TradeskillWnd].Child[CombineButton].Enabled}) /goto :Loop 
   /notify TradeskillWnd CombineButton leftmouseup 

You can use the same thing for the SearchButton, etc.
Hope this helps someone out :)

Posted: Fri Apr 30, 2004 11:15 pm
by Lax
as mentioned in the thread this was also a reply to, whether to check for .Enabled or .Checked is different depending on the button. The examples above appear "greyed out" rather than looking like theyre actually being pushed down still. Anything with that behavior will not be .Enabled. Anything that appears as though you're pushing the button down (e.g. hot buttons that use skills like taunt/bash/kick/etc) is .Checked