Just another update

This commit is contained in:
Ingy döt Net 2015-02-20 00:35:01 -05:00
parent a25938f123
commit 00a190b0a6
6591 changed files with 94363 additions and 23227 deletions

View file

@ -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.

View file

@ -1,4 +1,6 @@
---
category:
- Testing
- Hardware
- Pointing devices
note: GUI

View 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

View file

@ -1,6 +1,5 @@
import java.awt.MouseInfo
object MousePosition extends App {
val mouseLocation = MouseInfo.getPointerInfo().getLocation()
val mouseLocation = MouseInfo.getPointerInfo.getLocation
println (mouseLocation)
}

View file

@ -0,0 +1 @@
World activeHand position. " (394@649.0)"