Mouse position: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 774: Line 774:
<lang liveCode>
<lang liveCode>
-- Method 1:
-- Method 1:
-- this script in either the Stack Script or the Card Script to get position relative to the "current window"
-- this script in either the stack script or the card script to get position relative to the current stack window
on mouseMove pMouseH,pMouseV
on mouseMove pMouseH,pMouseV
put pMouseH,pMouse
put pMouseH,pMouse
end mouseMove
end mouseMove

-- Method 2:
-- Method 2:
-- this script can go anywhere and position relative to the "current window"
-- this script can go anywhere to get current position relative to the current stack window
put mouseLoc()
put mouseLoc()

-- Method 3:
-- Method 3:
-- this script can go anywhere and position relative to the "current window"
-- this script can go anywhere to get current position relative to the current stack window
put the mouseLoc -- "
put the mouseLoc

-- Method 4:
-- Method 4:
-- this script can go anywhere and position relative to the "current window"
-- this script can go anywhere to get current position relative to the current window
put the mouseH &","& the mouseV
put the mouseH &","& the mouseV