Jump to content

Help with code please


Recommended Posts

Ok the code I want is very simple. It is basicly a bot program so I can keep harvesting a resource in a game without the constant click click click and my finger getting sore.

The code I have is:

For $x = 1 to 200

mousedown("right")

sleep(100)

mouseup("right")

sleep(8000)

next

Basic idea is to keep having the program right click for me a bunch of times. I run the program and it seems to work fine on my desktop, meaning it will cause it to right click and such on the icons. But when I load up the game and then run the exe on the bot program it does not seem to work in the game window.

Any help for what I need to do to fix this problem??

Please be very specific when it comes to the programing I am very much a newb, but can follow instructions =)

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