Jump to content

Program specific command with idle mouse times.

Recommended Posts


Hey everyone. I've just installed autoit for the first time and I was just hoping if someone could help me here..

What I need is a script that should run only on Google Chrome 64 bit on a windows 10 machine.

The Script should do this => If mouse X and Y movements are idle for 0.5 seconds then do keyboard shortcut = Alt+a . However when not idle for 0.1 microseconds then press Alt+z instead.  That is it . So everytime mouse is idle throw in Alt+a once then when not idle throw in Alt+z once and when again idle then throw Alt+a once. and so on....


Will appreciate any help. Thanks.

Share this post

Link to post
Share on other sites

@omairhe welcome to the forum. What, exactly, are you trying to do? We have a Chrome UDF, and if you could explain what you're trying to accomplish on the web page, there is bound to be a better way than mouseclicks.

√-1 2^3 ∑ π, and it was delicious!

Share this post

Link to post
Share on other sites

Hi @omairhe.

Maybe look into something like MouseGetPos and Send.


If you want something to be done in the browser, maybe look into if some of this can be done in JavaScript? If it's not a page, you have access to changing the code, check out tampermonkey

Edited by genius257

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


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.