Jump to content

Recommended Posts

Guest MrYourMom
Posted

a new patch came out in this game i play and my old anti idle script doesnt work any more for it i need ur guys help all i want a script to do is press spacebar every 1 min. can u guys help?

Posted (edited)

HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")

While 1
    send("{space}")
    sleep(60000)
    Wend

its simple i guess it will work i dont know

Edited by thatsgreat2345
  • Moderators
Posted

If it's in a game or something, you'll need to go a bet further, but tg2345 has the right idea:

Opt("WinTitleMatchMode", 4)

$game = "Game Title You Play" 

While WinExists($game)

WinWait($game)
If Not WinActive($game) Then WinActivate($game); make sure your sending it to the game

Send("{SPACE}")

Sleep(60000)

Wend

Should probably use TimeDiff() instead of Sleep, You could look that up in the help file.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Guest MrYourMom
Posted

im still usin the original one u posted thatsgreat2345 and its workin fine.

Posted (edited)

u should use rons his is better cuz it checks to see when your game starts up and stuff but thats cool mine is really simple but whatever by the way what game are u playing?

Edited by thatsgreat2345

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
  • Recently Browsing   0 members

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