gcue Posted August 25, 2008 Share Posted August 25, 2008 hello folks. i am trying to hide an easter egg in an application... you know a random animation or sound that will play if a combination of keys are pressed. i am trying to use hotkeyset... (not working either) HotKeySet("{LCTRL}+{RCTRL}", "Msg") has anyone done this with good success? thanks.. Link to comment Share on other sites More sharing options...
Szhlopp Posted August 25, 2008 Share Posted August 25, 2008 hello folks.i am trying to hide an easter egg in an application... you know a random animation or sound that will play if a combination of keys are pressed.i am trying to use hotkeyset... (not working either)HotKeySet("{LCTRL}+{RCTRL}", "Msg")has anyone done this with good success?thanks..Help file says you can't do two "{}"'s Sorry, you'll have to use "!" or "^" or "+" RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+' Link to comment Share on other sites More sharing options...
monoceres Posted August 25, 2008 Share Posted August 25, 2008 Here's how I would do it: #include <misc.au3> $dll=DllOpen("user32.dll") AdlibEnable("_EasterTime",25) Do Sleep(100) Until False Func _EasterTime() If _IsPressed("A2",$dll) And _IsPressed("A3",$dll) Then MsgBox(0,"Gongrats!","You triggered the easter egg!") EndIf EndFunc Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
gcue Posted August 25, 2008 Author Share Posted August 25, 2008 cool that works!! ill close the dll also Link to comment Share on other sites More sharing options...
monoceres Posted August 25, 2008 Share Posted August 25, 2008 cool that works!!ill close the dll also You're welcome,No need to close the dll really, but it doesn't hurt.. Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
Richard Robertson Posted August 25, 2008 Share Posted August 25, 2008 The problem with {LCTRL}+{RCTRL} is that you are listing two keystrokes instead of a proper key. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now