Difference between KeyPress and KeyRelease?

Home/Lazy Macros/Difference between KeyPress and KeyRelease?

Forums Forums Lazy Macros Difference between KeyPress and KeyRelease?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Caziban
    Scout
    Post count: 1

    Hello!

    I would like to create the following Macro:

    KeyPress:
    /run MouselookStop()

    Key Release:
    /cast [@cursor] Sigil of Flame
    /run MouselookStart()

    However, it looks like the commands under Key Release trigger on KeyDown – Is there any way to perform 1 action on keypress down and a different action on keypress up?

    TimothyLuke
    Conqueror
    (Addon Dev)
    Draik <Vinum et Feminae> of Nagrand -US Level 110 Blood Elf Paladin

    Recent Activity

    Post count: 903

    The devil is always in the detail.

    KeyPress is prepended to every sequence line and KeyRelease is postpended. Every time you hit your macro the combination of those three sections is sent to WoW to execute and it will process through the lines execute u TIL it gets to a stuck point.

    A stuck point occurs when you have the second GCD ability in that combination. This is why you don’t put GCD abilities in keyPress and this will block out the later parts of your macro.

    Where this gets interesting is that if your GCD ability in the body is on cooldown or unavailable as it’s only attempted once GCD ability wow will still execute the KeyRelease part giving the appearance that it just did keyPress and KeyRelease simultaneously.

    KeyRelease will work exactly as you are intending but you cannot the. Spam the macro but have to press on ability and gcd cooldowns

    BattleNet: TimothyLuke#1860
    WowLazyMacros/Curse/GitHub/WowInterface: TimothyLuke

    Most Commonly Played Characters:
    Huldrych@Dath'Remar
    Draik@Nagrand

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.