Jump to content
Sign in to follow this  
Popeye1

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

Recommended Posts

Popeye1

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

Share this post


Link to post
Share on other sites
iamtheky

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.


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

Share this post


Link to post
Share on other sites
Jos

The posted script will click one time per second.

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

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.