Sign in to follow this  
Followers 0
gauravvogue

unale to see mouse cursor movement and mouse co-ordinates are not working properly..whats wrong?

5 posts in this topic

dear guys...

could you please check as I am facing two issues...

1. I want to see mouse cursor movement position

2. mouse co-ordinates are not clicking at exact position though co-ordinates showing in window info _ Control_Control Click Coords are different

send("#r")
send("C:Market ID and Site ID{enter}")
sleep(500)
WinWaitActive("Market ID and Site ID")
sleep(500)
WinSetState("Market ID and Site ID", "", @SW_MAXIMIZE)
sleep(500)
WinActivate("Market ID and Site ID")
sleep(500)
MouseMove(85, 83, 20)
sleep(500)
MouseClick("left" , 85 , 83 , 1, 40)
sleep(500)
 

Share this post


Link to post
Share on other sites



Can you post a script that demonstrates the problem, that can be run by anyone on Windows? Also explain where the mouse is clicking if it's not clicking where you say it's supposed to.

Right now you have a script that no one can test unless they have the program you're running. Also, you say it isn't clicking in the right place, but you don't say where it is clicking in relation to where it is supposed to be clicking.

Also, please post all code in a code box, use the button on the toolbar, of the editor, marked with an A so that it formats the code correctly.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites

Hi....thanks for ur time....actually...i am a beginner user of this tool...i have prepared a script for a single folder opening in C drive.. The problem I am facing is that...whenever mouse click commands come into an action so my active window gets minimize and mouse clicks on the desktop cordinates

Share this post


Link to post
Share on other sites

I got it now, you're opening the Windows Explorer and not a program.

What are you attempting to do in Windows Explorer with the mouseclicks, as you can probably do it another way that doesn't require using the mouse.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites

Actually...i have selected all files by send function then wanted to do the right click and open them.....but my coordinates are ok......but the window gets minimized and it clicks at the desktop

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