Monitor sysget breaks code that works with ghost variables?
Posted: 19 Oct 2018, 05:50
Hi,
I had this script working perfectly, but today I noticed I could have deleted this code:
SysGet, Monitor2, Monitor, 2
I tried adding it again, but it started breaking the script.
So I changed it to Mon2 for the output variable, and noticed the part of the script still using Monitor2 would work, but not the one using mon2.
So I wrote this test script, and basically it would work with anything but the SysGet OutputVar:
XButton1 & 1::
If (Monitor2Left = -%A_ScreenWidth% OR Monitor2Right = 2*%A_ScreenWidth%)
MsgBox DualScreen 1
Return
XButton1 & 2::
SysGet, Monitor2, Monitor, 2
If (PrettyMuchAnything = -%A_ScreenWidth% OR AnythingReally = 2*%A_ScreenWidth%)
MsgBox DualScreen 2
Return
XButton1 & 3::
SysGet, Monitor2, Monitor, 2
If (Monitor2Left = -%A_ScreenWidth% OR Monitor2Right = 2*%A_ScreenWidth%)
MsgBox DualScreen 3
Return
Is anyone else able to confirm this?
Best regards.
I had this script working perfectly, but today I noticed I could have deleted this code:
SysGet, Monitor2, Monitor, 2
I tried adding it again, but it started breaking the script.
So I changed it to Mon2 for the output variable, and noticed the part of the script still using Monitor2 would work, but not the one using mon2.
So I wrote this test script, and basically it would work with anything but the SysGet OutputVar:
XButton1 & 1::
If (Monitor2Left = -%A_ScreenWidth% OR Monitor2Right = 2*%A_ScreenWidth%)
MsgBox DualScreen 1
Return
XButton1 & 2::
SysGet, Monitor2, Monitor, 2
If (PrettyMuchAnything = -%A_ScreenWidth% OR AnythingReally = 2*%A_ScreenWidth%)
MsgBox DualScreen 2
Return
XButton1 & 3::
SysGet, Monitor2, Monitor, 2
If (Monitor2Left = -%A_ScreenWidth% OR Monitor2Right = 2*%A_ScreenWidth%)
MsgBox DualScreen 3
Return
Is anyone else able to confirm this?
Best regards.