Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Windows shutdown
#1
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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)