Mouse position: Difference between revisions

solved for maxscript
m ({{out}})
(solved for maxscript)
Line 457:
=={{header|Mathematica}}==
<lang Mathematica>MousePosition["WindowAbsolute"]</lang>
=={{header|MAXScript}}==
Creates a window on the screen and shows mouse position as it moves.
 
<lang MAXScript>
try destroydialog mousePos catch ()
 
rollout mousePos "Mouse position" width:200
(
label mousePosText "Current mouse position:" pos:[0,0]
label mousePosX "" pos:[130,0]
label mousePosSep "x" pos:[143,0]
label mousePosY "" pos:[160,0]
timer updateTimer interval:50 active:true
on updateTimer tick do
(
mousePosX.text = (mouse.screenpos.x as integer) as string
mousePosY.text = (mouse.screenpos.y as integer) as string
)
)
 
createdialog mousepos
</lang>
 
=={{header|MATLAB}}==
Anonymous user