Jump to content

easter egg


gcue
 Share

Recommended Posts

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

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 "+" :D

Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...