lilandywandy Posted March 18, 2005 Share Posted March 18, 2005 (edited) HotKeySet("{PAUSE}", "mExit") MouseClick("left", 551, 23, 1) While 1 Send("{F2}") Sleep(1080000) Send("{F2}") Sleep(1080000) Send("{F2}") WEnd Func mExit() Exit EndFunc Shutdown (1) how can i make it so that this script repeats the f2ing and sleeping for about 3 hours and then shut off computer ? Edited March 18, 2005 by lilandywandy Link to comment Share on other sites More sharing options...
SlimShady Posted March 18, 2005 Share Posted March 18, 2005 This should work HotKeySet("{PAUSE}", "mExit") MouseClick("left", 551, 23, 1) $AfterHours = 3 $FinishTime = String(@Hour + $AfterHours) & ":" & @MIN Do Send("{F2}") Sleep(1080000) Send("{F2}") Sleep(1080000) Send("{F2}") Until $FinishTime = @Hour & ":" & @MIN Func mExit() Exit EndFunc Shutdown (1) 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