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.

Link to post
Share on other sites
  • Moderators

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

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...