Jump to content

help with this


Guest MrYourMom
 Share

Recommended Posts

Guest MrYourMom

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?

Link to comment
Share on other sites

  • Moderators

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.

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...