This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Classic Theme
Thottbot Theme
[Request] One macro to toggle between two seperate commands.
Post Reply
Return to board index
Post by
Sadinshadow
Ok i have an addon that can be toggled active and inactive in game through two commands.
The commands are "/pgz on" to toggle it on, and "/pgz off" to toggle it off.
There are many times i want it on and many times i want it off, but it becomes an inconvenience to type in the command each time, especially if i could simply have one macro that does both.
I tried making the macro using shift as a mod key, or even for it to turn on with left mouse button, and off with the right. i seem to be having trouble with the placement of these conditions and obviously haven't had much luck.
if someone could make me a macro that uses either the /pgz on, or /pgz off command via mod key or mouse button, i would be very great full.
not only would this help me get the macro i wanted, but it would show me the correct placement for the condition in future macros i would like. it would be two birds with one stone, and keep me from coming back here asking for more macros that i could then make my self. :P
Thank you in advance for taking the time to read this, and any help you may give. :)
Post by
449558
This post was from a user who has deleted their account.
Post by
RedwoodElf
/pgz on
/stopmacro
/pgz off
If you want it on, hold down alt. If you want it off, don't.
Post by
Sadinshadow
/pgz on
/stopmacro
/pgz off
If you want it on, hold down alt. If you want it off, don't.
thank you very much. i looked all over the making a macro section but couldn't get it to work, i didnt think about the stop macro command, so obvious lol.
once again thank you for the macro and teaching me the value of the stopmacro command :)
Post by
PessimiStick
Could also do something like this if you want it on a single button with no modifier needed.
/run if not active then AddonEnableFunction() active=true else AddonDisableFunction() active=nil end
Just need to look at the addon and use the appropriate functions.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.