Konami code on autohotkey

up up down down left right left right ba enter :: Msgbox, konami code.

Is there any way to do this?

+4
source share
1 answer

yes its actually quite simple ...

  comb: = "up | down | down | left | right | left | right | b | a | enter" 
 ~ up ::
 Loop, parse, comb, |
 {
     input, var, T.900, {% a_loopfield%}
     if inStr (ErrorLevel, "Timeout")
         return
 }
 msgbox Konami Code !!!
 return

The first “up” is the one that will call the sequence, therefore, only one “up” in the combined variable.

you can change the combination to whatever you want, but then you have to change the hot key to the first "key" that you want to press.

+3
source

All Articles