Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -1 +1,21 @@
|
|||
Get the current location of the mouse cursor relative to the active window. Please specify if the window may be externally created.
|
||||
{{omit from|ACL2}}
|
||||
{{omit from|AWK|Does not have an active window concept}}
|
||||
{{omit from|Befunge|No mouse support}}
|
||||
{{omit from|Brainf***}}
|
||||
{{omit from|GolfScript}}
|
||||
{{omit from|GUISS}}
|
||||
{{omit from|Logtalk}}
|
||||
{{omit from|Lotus 123 Macro Scripting}}
|
||||
{{omit from|Maxima}}
|
||||
{{omit from|ML/I}}
|
||||
{{omit from|PARI/GP}}
|
||||
{{omit from|PHP}}
|
||||
{{omit from|PostScript}}
|
||||
{{omit from|R}}
|
||||
{{omit from|TI-83 BASIC|Does not have a pointing device.}}
|
||||
{{omit from|TI-89 BASIC|Does not have a pointing device.}}
|
||||
{{omit from|UNIX Shell}}
|
||||
{{omit from|ZX Spectrum Basic|Does not have a pointing device interface or windowing engine}}
|
||||
|
||||
Get the current location of the mouse cursor relative to the active window.
|
||||
Please specify if the window may be externally created.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
---
|
||||
category:
|
||||
- Testing
|
||||
- Hardware
|
||||
- Pointing devices
|
||||
note: GUI
|
||||
|
|
|
|||
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
|
||||
|
|
@ -1,6 +1,5 @@
|
|||
import java.awt.MouseInfo
|
||||
|
||||
object MousePosition extends App {
|
||||
val mouseLocation = MouseInfo.getPointerInfo().getLocation()
|
||||
val mouseLocation = MouseInfo.getPointerInfo.getLocation
|
||||
println (mouseLocation)
|
||||
}
|
||||
|
|
|
|||
1
Task/Mouse-position/Smalltalk/mouse-position.st
Normal file
1
Task/Mouse-position/Smalltalk/mouse-position.st
Normal file
|
|
@ -0,0 +1 @@
|
|||
World activeHand position. " (394@649.0)"
|
||||
Loading…
Add table
Add a link
Reference in a new issue