I created a mouse-centered magnifier in autohotkey with the windows magnifier api. Done back in windows 7, worked over the new windows 8, 8.1, and even 10 LTSB. But it appears to break in windows 10 creators update, redstone 3 update, this carried on to windows 10 redstone 4, and now Windows 10 Redstone 5. Of course, no answers found.
The problem is that while magnified, clicking certain location of the screem causes the clicking position as if it's not there, outside the screen, or nowhere, defocusing the window.
I tested with the magnifier api sample from https://code.msdn.microsoft.com/windowsdesktop/Magnification-API-Sample-14269fd2 Also tested with simple C# console application below;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.InteropServices;
namespace Magnifier
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(MagInitialize());
Console.WriteLine(MagSetFullscreenTransform(4.0f, 0, 0));
Console.ReadLine();
MagUninitialize();
}
[DllImport("Magnification.dll")]
public static extern bool MagInitialize();
[DllImport("Magnification.dll")]
public static extern bool MagSetFullscreenTransform(float a, int b, int d);
[DllImport("Magnification.dll")]
public static extern bool MagUninitialize();
[DllImport("Magnification.dll")]
public static extern bool MagShowSystemCursor(bool a);
}
}
I tested it on another computer installed with windows 10 redstone 4, still same.
Anyone know what's up with it, why it happens, and how to fix it?