Web Hosting, Design, & Coding forum

Question

mouse coordinates

by scripthelp / November 27, 2012 5:14 AM PST

Hi,

I have a script for autohotkey that does a mouse click wherever i leave the cursor, then after 3 more seconds it sends the cursor to coordinates and clicks again. The point is to bring the mouse to a prompt button that pops up after the first click and then clicks the "ok' button on the prompt. It works perfect except for the coordinates. I used a couple different coordinates finders including the one that comes with autohotkey, "windowspy". But the problem is they aren't giving me the correct coordinates and it also seems to change depending on the web page i'm one. So what i thought to do is use screen coordinates instead of the default which appears to be whatever window is active. This way it would click at the same place on the screen no matter if theres a browser open or not, but 1-i can't find a way to determine the coordinates of the desktop, and 2-even if i do what syntax could i use in a AHK script to tell it to use screen coordinates? I tried what i found in the help file but that didn't work. And i tried asking in the AHK forum but i think they may have decided not to answer me because i already asked many questions to get to this poitn and they may have felt i'm not trying to help myself. But i AM, and in fact read thru tons of the help files and nothing worked. So i'm asking here in hopes someone can help. Thanks.

Discussion is locked
You are posting a reply to: mouse coordinates
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: mouse coordinates
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.

All Answers

Collapse -
Answer
Sorry but
by R. Proffitt Forum moderator / November 27, 2012 5:37 AM PST
In reply to: mouse coordinates

I've never found the mouse method to be reliable. That's why I use the tab and enter method instead. Sorry but that's all I can offer for now.
Bob

Collapse -
Answer
mouse coordinates
by amanodigma / December 5, 2012 5:40 PM PST
In reply to: mouse coordinates

i have also same problem

Popular Forums
icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

CNET FORUMS TOP DISCUSSION

Help, my PC with Windows 10 won't shut down properly

Since upgrading to Windows 10 my computer won't shut down properly. I use the menu button shutdown and the screen goes blank, but the system does not fully shut down. The only way to get it to shut down is to hold the physical power button down till it shuts down. Any suggestions?