I have various scripts that I use daily, three of which utilize the WinMove command for one reason or another. Then one day a good while ago I noticed all three of them just stopped working. Wasn't a massive issue for me so just been living with it but it's really getting irritating now.
So I just created a bare minimum code to test in isolation to see what's happening, and found it wasn't actually WinMove failing per se, rather it seems windows is suspending and then terminating any code that uses the WinMove command. If i comment that line out in my code, the script will run, but as soon as I un-comment it, the script gets killed again.
I thought maybe this is an antivirus thing or even something in windows defender, so I have a spare PC to test this. I uninstalled the antivirus & checked windows defender wasn't doing anything too. The PC is effectively blank as I did a factory reset & multiple subsequent windows updates on it only a month ago.
Code: Select all
#c::
SplashTextOn, 400, 300, Clipboard, The clipboard contains:`n%Clipboard%
WinMove, Clipboard,, 0, 0
MsgBox, Press OK to dismiss the SplashText
SplashTextOff
Certainly a weird one, hope someone can help!