Hi all,
My script registers a ShellHook. When the user selects "pause script" from the tray icon right click menu then the shell hook (obviously) still stays active.
I was wondering if there is a OnPause event similar to OnExit, so that I can deactivate the hook before the script pauses.
Of course I would have to somehow activate it again with a OnResumefromPause event.
Unfortunately I could not find anything like that. Is this already possible?
Best regards, Stephan
React to tray-icon pause script event
Re: React to tray-icon pause script event
Alternately, you can test built-in variable A_IsPaused within ShellHook() procedure and act accordingly.autocart wrote:deactivate the hook before the script pauses
Re: React to tray-icon pause script event
Very good thought. Thank you, SKAN!SKAN wrote:you can test built-in variable A_IsPaused within ShellHook() procedure and act accordingly.
I had already tried to use the Menu command with NoStandard and then build my own menu entries. But I like your idea even better.
Who is online
Users browsing this forum: Google [Bot], peter_ahk and 349 guests