10-16-2012, 01:10 AM
Hello,
i would like to intercept windows shutdown/reboot process, to make some costum action before, and then shutdown/reboot via QM.
I think about 2 scenarii, but i'd like to know if it is possible in QM.
If not directly, what is the code for launching several macros/functions in sequence, each one waiting the precedent one to
finally exit windows at the end of all actions done?
1. exemple, i could create a shortcut to a macro on desktop, containing all the actions, and then quit windows
Macro "ActionsOnShutdown"
macro1
;; wait til finished then
macro2
;; wait til finished
etc
;;
shutdown/reboot windows
But I MUST be sure each macro will wait for the one before to be finished before acting..... (thought about thread stuff, but can't get the whole picture)
2. or better is possible, adaptation in QM of catch WM_SHUTDOWN/WM_QUERYENDSESSION like this one would great,
like this VB code
http://community.bartdesmet.net/blogs/b ... 2300_.aspx
3. Or better way specific to QM??
Regards
Thanks.
i would like to intercept windows shutdown/reboot process, to make some costum action before, and then shutdown/reboot via QM.
I think about 2 scenarii, but i'd like to know if it is possible in QM.
If not directly, what is the code for launching several macros/functions in sequence, each one waiting the precedent one to
finally exit windows at the end of all actions done?
1. exemple, i could create a shortcut to a macro on desktop, containing all the actions, and then quit windows
Macro "ActionsOnShutdown"
macro1
;; wait til finished then
macro2
;; wait til finished
etc
;;
shutdown/reboot windows
But I MUST be sure each macro will wait for the one before to be finished before acting..... (thought about thread stuff, but can't get the whole picture)
2. or better is possible, adaptation in QM of catch WM_SHUTDOWN/WM_QUERYENDSESSION like this one would great,
like this VB code
http://community.bartdesmet.net/blogs/b ... 2300_.aspx
3. Or better way specific to QM??
Regards
Thanks.