Jump to content
Sign in to follow this  

Can AutoIt detect a mouse click in a specific region?

Recommended Posts


I'm considering using a program called Frameless to display various graphic files -- including some animated gifs. Each graphic will have a button in it for the user to click on to move to the next graphic. (like a "Next" button).

Frameless can display each graphic at a specific screen location so I can predict the coordinates of any element in the graphic, including this button.

Frameless can force the graphic to be on top of all other windows, which I need.

The problem with simply waiting for any mouse click is that my graphics tell the user how and where to click within programs that are visible behind each graphic. So the user will be clicking or or typing into those programs. All I can likely be sure of is that the user won't unintentionally click on the "Next" button in the graphic itself, thus my goal of limiting where this "hotspot" is.

Can AutoIt be running in the background and detect when the user clicks on the button in each graphic?

Bonus question: could AutoIt display the actual clickable button atop the graphic displayed by Frameless? No wait... I assume that's impossible if I set Frameless to always display "on top". Nevermind.

Please don't recommend that I display the graphics using AutoIt because my experience with the hack to display animated gifs yields very slow-to-open graphics, and for me it's difficult to implement. Using Frameless to display the graphics seems to be a more efficient delegation of tasks.


Edited by timmy2

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  

  • Similar Content

    • irfan666
      By irfan666
      Hi, how to make autoit "monitoring" program, Basically i want autoit to autoclick "start" button only  when the program is "stop" ? thanks

    • jlorenz1
      By jlorenz1
      PixelSearch ( left, top, right, bottom, color [, shade-variation = 0 [, step = 1 [, hwnd]]] )
      Searches a rectangle of pixels for the pixel color provided  depending on a specified window handle.

      MouseClick ( "button" [, x, y [, clicks = 1 [, speed = 10]]] ) makes a click on a specified position.
      How can I simulate a MouseClick on a window depending on a specified handle, which is invisibel, and without moving the mouse really?
      Is this possible? How is the syntax?
      Thanks in advance