Jump to content

Help plz >.>


Recommended Posts

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
Link to comment
Share on other sites

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...