For example, one monitor should have 4 windows arranged in a grid. The monitor working area is 1920x1200, so 960x600 for each window. However, when I run the below, they are all coming out at about 540x800. Can someone help me out and validate that I'm using WinMove correctly? I've put in some MsgBox commands for troubleshooting, and they are all showing the values that I expect, but I can't figure out why the resize isn't happening correctly. TIA!
Code: Select all
SysGet, m1, MonitorWorkArea, 1 WinTop:=m1Top WinLeft:=m1Left WinHeight:=floor(Abs((m1Bottom-m1Top)/m1Rows)) WinWidth:=floor(Abs((m1Right-m1Left)/m1Cols)) run, "C:\Program Files\Internet Explorer\iexplore.exe" %A_LoopField% sleep, 500 MsgBox, 4144, Testing, Height:%WinHeight% Width:%WinWidth% LeftPos:%WinLeft% TopPos:%WinTop% WinMove, ahk_class IEFrame,, WinLeft, WinTop, %WinHeight%, %WinWidth% ;I've also tried WinHeight and WinWidth (without % %, but same result)