Thread Tools Display Modes
02-26-14, 07:13 PM   #1
sirann
A Flamescale Wyrmkin
Join Date: Mar 2007
Posts: 142
Strange modifier request

Good (insert time of day you are reading this in relationship to the sun),

I have a rather strange request so I'll give some background as to why, and hopefully that will also better explain what I'm looking for. I am an active raid leader and am quite vocal, the downside being I frequently have to call things out via a push to talk button over vent (left alt is this button.) All of my macros are set up in a pretty similar format as follows:

#showtooltip
/cast [nomod][mod:alt] x
/cast [mod:shift] y
/cast [mod:ctrl] z

this allows me to free up action bar space and use the free action bars as non addon requiring cooldown bars (yay less cpu/mem!)

What I'm looking for is a way to write the macro as follows:

when I hold either no modifier or my vent button (alt) it casts ability x, when I hold either the shift modifier OR (shift AND alt) modifier it casts y, and when I hold either ctrl or (ctrl AND alt) it casts z.

there are a few rare instances that I have to release my push to talk key to hit a keybind that is either a shift or ctrl modified key, and thus can be rather annoying.

I appreciate your time.
  Reply With Quote
02-26-14, 07:33 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by sirann View Post
when I hold either no modifier or my vent button (alt) it casts ability x, when I hold either the shift modifier OR (shift AND alt) modifier it casts y, and when I hold either ctrl or (ctrl AND alt) it casts z.
#showtooltip
/cast [mod:shift,mod:alt] [mod:shift] Y
/cast [mod:ctrl,mod:alt] [mod:ctrl] Z
/cast [mod:alt] [nomod] X
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
02-26-14, 07:37 PM   #3
sirann
A Flamescale Wyrmkin
Join Date: Mar 2007
Posts: 142
I'm not religious, but your vast array of wow coding knowledge makes me question the presence of deities among us.
  Reply With Quote
02-26-14, 08:32 PM   #4
Vrul
A Scalebane Royal Guard
 
Vrul's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 404
If I am understanding you correctly you want a macro that changes behavior if shift or ctrl is held down but ignores the alt key?

/use [mod:shift] Y; [mod:ctrl] Z; X

Swap the shift/ctrl part based on which should have higher priority (first in line has higher priority).
  Reply With Quote
02-26-14, 08:41 PM   #5
sirann
A Flamescale Wyrmkin
Join Date: Mar 2007
Posts: 142
To clarify, phanx answered it exactly how I was looking for, my apologies if I wasn't clear enough. Thank you as well.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Macro Help » Strange modifier request

Thread Tools
Display Modes

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

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