Guest User

Untitled

a guest
Dec 11th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. Gui +LastFound
  2. hWnd := WinExist()
  3.  
  4. DllCall( "RegisterShellHookWindow", UInt,hWnd )
  5. MsgNum := DllCall( "RegisterWindowMessage", Str,"SHELLHOOK" )
  6. OnMessage( MsgNum, "ShellMessage" )
  7.  
  8. Return ; // End of Auto-Execute Section //
  9.  
  10. ShellMessage( wParam,lParam ) {
  11. if (winactive()){
  12. ;osd show
  13. }
  14. else
  15. ;osd off
  16. }
Add Comment
Please, Sign In to add comment