"wait" seems to be a must. but this raises another problem: can I have a loop in PProShutdown? I put following code in PProShutdown, Windows DEP sometimes brings up a trap to stop powerpro.
My guess is that powerpro kills the plugin first before execute PProshutdown, so I get a infinite loop. Is this correct? If this is corret, do I have any other options to write the code? KeyTrap.enable(0) for(enable=1 ; enable !=0;) keytrap.enable(0) enable = keytrap.isenable() endfor wait.for(500) KeyTrap.Unload() --- In [email protected], "brucexs" <bruc...@...> wrote: > > > > > By the way, do I have to uload KEYTRAP before I quit powerpro? > > > > > > Sorry, I don't know enough about how Keytrap works to answer. > > > > > You can just create a command list called PProshutdown and put the unload > command in it. This list is run automatically when ppro shuts down. >
