<< Click to Display Table of Contents >> Navigation: 3. Script Language > Window Operations > DTI.-Desktop & Mouse Commands > DTI.DCoord |
MiniRobotLanguage (MRL)
DTI.DCoord
Get Desktop-Screens Coordinates (Monitors)
Intention
This command will find our on which Coordinates "Monitors" (Desktops) starts (upper left corner).
If you have "Dual Screen", the result will look like that, because Desktop 2 is to the right of Desktop 1.
DTI.cd|$$NUM
FOR.$$NUA|1|$$NUM
DTI.DC|$$NUA|$$HAA|$$WAA
DBP.Desktop Positon of upper, left corner of Monitor $$NUA is at: $$HAA,$$WAA
NEX.
ENR.
Syntax
DTI.DCoord|P1[|P2][|P3]
Parameter Explanation
P1 - Number of Desktop/Screen as given using DTI.Count Desktops.
P2 - (optional) Variable, will return the X-Coordinate of the upper left corner of this Desktop. If omitted the Result will be placed on TOS.
P3 - (optional) Variable, will return the Y-Coordinate of the upper left corner of this Desktop If omitted the Result will be placed on TOS.
Example
'*************************************
' Example 1
'*************************************
DTI.cd|$$NUM
FOR.$$NUA|1|$$NUM
DTI.DC|$$NUA|$$HAA|$$WAA
DBP.Desktop Positon of upper, left corner of Monitor $$NUA is at: $$HAA,$$WAA
NEX.
ENR.
Remarks
Limitations:
-
See also:
•