Reputation: 71
up up down down left right left right b a enter :: Msgbox, konami code.
is there a way to do this?
Upvotes: 4
Views: 536
Reputation: 328
yes its actually pretty 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 trigger the sequence hence only one "up" in the combination variable.
you can change the combination to whatever you want, but then you would have to change the hotkey to the first "key" that you want to press.
Upvotes: 3