Jump to content

Code not working


swoon
 Share

Recommended Posts

well im new to autoit but im trying to make an easy macro/bot to click a few buttons for me in game.

this is what i put in.

While 1=1

$i = 0

While $i < 30

Send("{Tab}")

Sleep(500)

Send("{2}")

Sleep(5000)

Send("{Tab}")

Sleep(500)

Send("{2}")

Sleep(5000)

Send("{Tab}")

Sleep(500)

Send("{2}")

Sleep(5000)

WEnd

it seems to work when i run it but then when i maximize the game or try to run it with the game on top it doesnt work... it works when im on anything else (ex: internet) but when i open the game it just stops. what could cause this?

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