Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Window Spy returning wrong results


  • Please log in to reply
1 reply to this topic
Telepski
  • Members
  • 5 posts
  • Last active: Nov 11 2014 10:58 PM
  • Joined: 24 May 2012

Just got a new 4k HD monitor; on a Win 8.1 machine I set the slider regulating the magnification factor of all desktop elements to the 2nd of 4 possible positions ("medium small").

 

The AHK Window Spy now returns mouse position results that are too small by a factor of 1.25. Looks like there's some incompatibility with the Win 8.x way of scaling elements.



girlgamer
  • Moderators
  • 3263 posts
  • Last active: Feb 01 2015 09:49 AM
  • Joined: 04 Jun 2010

What you might try is using WinGetActiveStats to see if that is returning the correct

results for the active window. Other commands you can use in conjunction would be

WinGetClass, and the ControlGet series of commands to build a similarly functioning

ahk routine.


The universe is a wondrous place! The faster you create unbreakable code, the faster the universe creates people that can break it. All scripting follows the rule Rule Of Twos -- 1) Good, 2) Fast 3) Cheap -- pick any Two.
I guarantee absolutely nothing about any code I provide except that it works in my machine. ‚óŹ
MMO Fighter   KeyLooperDemo   Key Spammer   TinyClickRecorder  GGs Password Generator.ahk
For the newest version of AutoHotkey and some killer scripts go here.
Rock-on%20kitten.gif