Jump to content

Simple MouseClick("left") only clicks occasionally rather than every 1 second?


Popeye1
 Share

Recommended Posts

While 1 ;start master loop

MouseClick("left")

Sleep(1000)

WEnd ; end master loop

This is the test script i'm using because weird things are happening in my main script, such as clicks not going through sometimes.

The click is just clicking a game client window and is supposed to select a new location every 1 second, wherever the mouse cursor is pointed at.

The strange problem here is that it only clicks about once every 3-5 seconds, instead of once a second. Can anyone think of a reason as to why every click isn't being registered? I'm pretty sure this is not some kind of anti-macro thing related to this game because i've never came across such a problem in any game i've played.

Edited by Popeye1
Link to comment
Share on other sites

because there is a crapload more statements to get through in the while perhaps. Way to mention (unnecessarily i might add) that this is for a game client, as that should promptly get it locked.

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

  • Developers

The posted script will click one time per second.

Have you read the sticky at the top of this forum?

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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