KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Help with writing commands calling MousePosition on multiple monitors?
Topic Summary:
Created On: 11/10/2021 05:48 PM
Status: Post and Reply
Linear : Threading : Single : Branch
 11/11/2021 10:38 AM
User is offline View Users Profile Print this message

Author Icon
Top-Tier Member

Posts: 2217
Joined: 03/21/2007

Of course you can. You can use math to calculate since you can find the offset (monitors start at adjoining and adjacent pixels) which is constant (so addition or subtraction) and you can find the resolution, scaling and DPI factors of each monitor display to determine the ratio of unit lengths (so division) which can help you with determining the number of units lengths in the x and y direction to get to your spot of interest (so multiplication). It is not as hard as you'd think, but for more help look for the "Fling" AHK command I once wrote (and still use) which takes a program window from one monitor and positions it on another monitor in the exact same relative position and size as originally (and accounting for the different resolution and scaling of the different monitor) from which you can find most of the math involved: here

Good luck, I have found those attempts at locating buttons that way mostly futile (as applications don't draw UI based only on resolution and scaling, etc.), save for the overall window position containing the UI. For pdfs, look up the shortcut keys and use them. In worse cases, you can march through menu structures with keyboard access (alt-keys) and for example I have created scripts for PDF-XChange that cover things like highlight color or picking other commenting tools, etc. by doing just that: here




Remember folks, my comments and this forum are for entertainment value only, please, no wagering or other reliance on the contents herein.  I permit no commercial use of my ideas (whether expressions or embodiments) without my written consent.

32358 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 1 users logged in.
The most users ever online was 12124 on 09/09/2020 at 04:59 AM.
There are currently 368 guests browsing this forum, which makes a total of 369 users using this forum.

FuseTalk Standard Edition v4.0 - © 1999-2022 FuseTalk™ Inc. All rights reserved.