Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
20
Task/Mouse-position/MAXScript/mouse-position.max
Normal file
20
Task/Mouse-position/MAXScript/mouse-position.max
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue