Sign in to follow this  
Followers 0
ffdshow

Automatically find coordinates of a window, and move the cursor in the center of that window

5 posts in this topic

I made a script for a program. But import the registry settings does not work totally.

So I need to start that program and then to move the mouse cursor in that tiny window.

I presume that is need to find automatically the coordinates of that window and move the

cursor in the center of it and then perform a right click in the center.

I know how to start the program and perform right click automatically, but for the rest I need help.

Thanks!

Share this post


Link to post
Share on other sites



Use WinGetPos(), to find the windows x and y values of the window. Then add the (height / 2) and (width / 2) to those coords.

Share this post


Link to post
Share on other sites

Thanks gamepin126!

Share this post


Link to post
Share on other sites

Does anyone know how to move the cursor in the center of a window automatically?

How can I use WinGetPose and MouseClick together?

Please I need a script!

Share this post


Link to post
Share on other sites

How can I use WinGetPose and MouseClick together?

Why do you need to do the same together when MouseClick() has the parameters to specify the mouse position ?

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          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  
Followers 0