Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
About the System Tray
#4
If I create a template I get this (I uncommented the bottom section):

Function Hook_SetWinEventHook2
Code:
Copy      Help
;/
function hHook event hwnd idObject idChild dwEventThread dwmsEventTime

outw hwnd ;;debug

;your code here


;;SetWinEventHook example
int hh=SetWinEventHook(EVENT_SYSTEM_FOREGROUND EVENT_SYSTEM_FOREGROUND 0 &sub.Hook_SetWinEventHook 0 0 WINEVENT_OUTOFCONTEXT)
if(!hh) end F"{ERR_FAILED}. {_s.dllerror}"
opt waitmsg 1
wait -1
UnhookWinEvent hh

Could you give me an example command using this function where the generation of the "Safely Remove Hardware and Eject Media" tray icon is hooked (when the user plugs in a USB stick in his computer assuming there is no other USB device plugged in yet). I want to attach an action to that.


Messages In This Thread
About the System Tray - by RoryT84 - 06-10-2020, 05:16 PM
RE: About the System Tray - by InterestedNewbie - 06-18-2020, 01:19 PM
RE: About the System Tray - by Gintaras - 06-18-2020, 05:50 PM
RE: About the System Tray - by RoryT84 - 06-20-2020, 09:09 PM
RE: About the System Tray - by Gintaras - 06-21-2020, 04:56 AM
RE: About the System Tray - by RoryT84 - 06-21-2020, 08:24 PM
RE: About the System Tray - by Kevin - 06-22-2020, 04:24 PM
RE: About the System Tray - by Gintaras - 06-22-2020, 04:51 PM
RE: About the System Tray - by RoryT84 - 06-23-2020, 12:05 AM

Forum Jump:


Users browsing this thread: 6 Guest(s)