zer0degrees Posted February 8, 2007 Share Posted February 8, 2007 (edited) How can I make my script exit before the computer shuts down? Edited February 8, 2007 by zer0degrees Link to comment Share on other sites More sharing options...
mrbond007 Posted February 8, 2007 Share Posted February 8, 2007 How can I make my script exit before the computer shuts down? give us an example script plz. Projects : Space Regain - Memory Fusion - PWGT - Chip-ITGames : BrainPain - BrainPain Director's Cut - ProSpeed Games Pack (New)Vista vs XP : the forbidden fight Link to comment Share on other sites More sharing options...
zer0degrees Posted February 8, 2007 Author Share Posted February 8, 2007 I mean: How to close any script before the computer shuts down. Link to comment Share on other sites More sharing options...
mrbond007 Posted February 8, 2007 Share Posted February 8, 2007 I mean: How to close any script before the computer shuts down.you can try using a timer then when the timer reaches a certain number call Exit function. Projects : Space Regain - Memory Fusion - PWGT - Chip-ITGames : BrainPain - BrainPain Director's Cut - ProSpeed Games Pack (New)Vista vs XP : the forbidden fight Link to comment Share on other sites More sharing options...
zer0degrees Posted February 8, 2007 Author Share Posted February 8, 2007 yes i tried that but i want the script closed automatically right before the computer shuts down. Link to comment Share on other sites More sharing options...
sandyd Posted February 8, 2007 Share Posted February 8, 2007 You will need to register the event WM_CLOSE and allow your script to respond when it receives this message. See GUIRegisterMsg in the help for more info. ----[ SandyD ]--- Link to comment Share on other sites More sharing options...
zer0degrees Posted February 8, 2007 Author Share Posted February 8, 2007 can you give me some more info on that pls? i looked at GUIRegisterMsg in the help file but i don`t understand too much of it. am i supposed to write GUIRegisterMsg($WM_CLOSE, "MY_WM_COMMAND") or what? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now