Inconsistent @WINPOS // ACTIVATE /POS= behavior

Aug 23, 2010
Aside from @WINPOS returning Y1,X1,Y2,X2, whereas ACTIVATE /POS= requiring X,Y,W,H, which can't be fixed without breaking backwards compatibility; there's one more inconsistency that should be attended:
Where @WINPOS returning values relative to the screen viewport, ACTIVATE /POS= operates relative to the desktop area. Which, in turn, results in the behavior similar to this:
ECHO %@WINPOS[=1396]
ACTIVATE =1396 /POS=18,-4,1184,728
ECHO %@WINPOS[=1396]

Similar threads