no_messiah Posted February 20, 2005 Share Posted February 20, 2005 hi there i want to make a shutdown/close feature for the script when i press a key is this posible and how is it done if it is. i have read in the help file and found nothing usefull yet can some one assist me pls Link to comment Share on other sites More sharing options...
Developers Jos Posted February 20, 2005 Developers Share Posted February 20, 2005 hi there i want to make a shutdown/close feature for the script when i press a key is this posible and how is it done if it is. i have read in the help file and found nothing usefull yet can some one assist me pls<{POST_SNAPBACK}>just look for hotKetSet().... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
no_messiah Posted February 20, 2005 Author Share Posted February 20, 2005 just look for hotKetSet()....<{POST_SNAPBACK}>sweet i get it now theres even a perf example :"> Link to comment Share on other sites More sharing options...
davo818 Posted February 20, 2005 Share Posted February 20, 2005 Here you go, this is my code ; ---------------------------------------------------------------------------- ; ; AutoIt Version: 3.1.0 ; Davo818 ; ;Save your ass ;www.Gamerzvault.com ; ---------------------------------------------------------------------------- ; Script Start - Add your code below here HotKeySet("{ESC}", "CloseWMP") HotKeySet("{end}", "CloseFF") Sleep (100) ;what to do if ESC is pressed While 1 Sleep (100) Wend Func CloseWMP() ProcessClose ( "wmplayer.exe" ) Sleep (100) EndFunc ;Close firefox While 1 Sleep (100) WEnd Func CloseFF() ProcessClose ( "firefox.exe" ) Sleep (100) EndFunc Exit 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