Skip to content

Instantly share code, notes, and snippets.

@TLMcode
Created December 9, 2013 08:58
Show Gist options
  • Save TLMcode/7869343 to your computer and use it in GitHub Desktop.
Save TLMcode/7869343 to your computer and use it in GitHub Desktop.
OnMessage Simple EventFunction Array Example
OnMessage(0x404,"TrayTip"), TrayTip()
Return
TrayTip(ParamArr*){
If !(ParamArr[1])
TrayTip, Tray Test, Click Me, 3
If (ParamArr[2]=1028 && ParamArr[4]=A_ScriptHwnd ) {
TrayTip, Next TrayTip, You waited too long! Click this time!, 3
}
if (ParamArr[2]=1029 && ParamArr[4]=a_scripthwnd) {
TrayTip, Final TrayTip, Thanks for clicking!, 3
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment