ffdshow Posted September 8, 2007 Share Posted September 8, 2007 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! Link to comment Share on other sites More sharing options...
gamepin126 Posted September 8, 2007 Share Posted September 8, 2007 Use WinGetPos(), to find the windows x and y values of the window. Then add the (height / 2) and (width / 2) to those coords. Link to comment Share on other sites More sharing options...
ffdshow Posted September 9, 2007 Author Share Posted September 9, 2007 Thanks gamepin126! Link to comment Share on other sites More sharing options...
ffdshow Posted September 13, 2007 Author Share Posted September 13, 2007 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! Link to comment Share on other sites More sharing options...
Developers Jos Posted September 13, 2007 Developers Share Posted September 13, 2007 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 ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now