Jump to content
Sign in to follow this  
lilandywandy

Help plz >.>

Recommended Posts

lilandywandy

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 by lilandywandy

Share this post


Link to post
Share on other sites
SlimShady

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)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×