Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,28 @@
|
|||
using [java] java.awt::Robot
|
||||
using [java] java.awt.event::InputEvent
|
||||
using fwt
|
||||
using gfx
|
||||
|
||||
class Main
|
||||
{
|
||||
public static Void main ()
|
||||
{
|
||||
button := Button
|
||||
{
|
||||
text = "click for robot"
|
||||
onAction.add |Event e|
|
||||
{
|
||||
robot := Robot ()
|
||||
robot.mouseMove (50, 50) // move to screen point 50, 50
|
||||
robot.mousePress (InputEvent.BUTTON1_MASK) // and click mouse
|
||||
robot.mouseRelease (InputEvent.BUTTON1_MASK)
|
||||
}
|
||||
}
|
||||
Window
|
||||
{
|
||||
title = "simulate mouse event"
|
||||
size = Size (300, 200)
|
||||
button,
|
||||
}.open
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue