Button ready for pressing

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

BrainDeath
a ghoul
a ghoul
Posts: 86
Joined: Sun Mar 07, 2004 5:00 pm

Button ready for pressing

Post by BrainDeath » Fri Apr 30, 2004 8:49 pm

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 :)

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Fri Apr 30, 2004 11:15 pm

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
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0