Dim robot As JavaObject
Dim jo As JavaObject
jo.InitializeStatic("com.sun.glass.ui.Application")
robot = jo.RunMethodJO("GetApplication",Null).RunMethodJO("createRobot",Null)
Dim i As Int = 65
robot.RunMethod("keyPress", Array As Object(i))
Sleep(50)
robot.RunMethod("keyRelease", Array As Object(i))
TextArea1.RequestFocus
Dim robot1 As JavaObject
Dim robot2 As JavaObject
Dim jo1 As JavaObject
Dim jo2 As JavaObject
jo1.InitializeStatic("com.sun.glass.ui.Application")
jo2.InitializeStatic("com.sun.glass.ui.Application")
robot1 = jo1.RunMethodJO("GetApplication",Null).RunMethodJO("createRobot",Null)
robot2 = jo2.RunMethodJO("GetApplication",Null).RunMethodJO("createRobot",Null)
Dim i As Int = 65
Dim j As Int = 66
robot1.RunMethod("keyPress", Array As Object(i))
robot2.RunMethod("keyPress", Array As Object(j))
Sleep(50)
robot1.RunMethod("keyRelease", Array As Object(i))
robot2.RunMethod("keyRelease", Array As Object(j))
TextArea1.RequestFocus
Dim robot1 As JavaObject
Dim robot2 As JavaObject
Dim jo1 As JavaObject
Dim jo2 As JavaObject
jo1.InitializeStatic("com.sun.glass.ui.Application")
jo2.InitializeStatic("com.sun.glass.ui.Application")
robot1 = jo1.RunMethodJO("GetApplication",Null).RunMethodJO("createRobot",Null)
robot2 = jo2.RunMethodJO("GetApplication",Null).RunMethodJO("createRobot",Null)
Dim i As Int = 65
Dim j As Int = 66
robot1.RunMethod("keyPress", Array As Object(i))
robot1.RunMethod("keyRelease", Array As Object(i))
robot2.RunMethod("keyPress", Array As Object(j))
robot2.RunMethod("keyRelease", Array As Object(j))
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
'MainForm.RootPane.LoadLayout("Layout1") 'Load the layout file.
MainForm.Show
textarea1.Initialize("")
MainForm.RootPane.AddNode(textarea1,10,10,100,100)
Dim robot1 As JavaObject
Dim jo1 As JavaObject
Dim keycodes As JavaObject
keycodes.InitializeStatic("javafx.scene.input.KeyCode")
jo1.InitializeStatic("com.sun.glass.ui.Application")
robot1 = jo1.RunMethodJO("GetApplication",Null).RunMethodJO("createRobot",Null)
textarea1.RequestFocus
' you have to think how you would type the characters
robot1.RunMethod("keyPress", Array(keycodes.GetField("SHIFT")))
robot1.RunMethod("keyPress", Array(keycodes.GetField("BACK_QUOTE")))
robot1.RunMethod("keyRelease", Array(keycodes.GetField("BACK_QUOTE")))
robot1.RunMethod("keyRelease", Array(keycodes.GetField("SHIFT")))
robot1.RunMethod("keyPress", Array(keycodes.GetField("A")))
robot1.RunMethod("keyRelease", Array(keycodes.GetField("A")))
End Sub
Dim robot1 As JavaObject
Dim jo1 As JavaObject
Dim keycodes As JavaObject
keycodes.InitializeStatic("javafx.scene.input.KeyCode")
jo1.InitializeStatic("com.sun.glass.ui.Application")
robot1 = jo1.RunMethodJO("GetApplication",Null).RunMethodJO("createRobot",Null)
TextArea1.RequestFocus
' you have to think how you would type the characters
robot1.RunMethod("keyPress", Array(keycodes.GetField("CONTROL")))
robot1.RunMethod("keyPress", Array(keycodes.GetField("V")))
robot1.RunMethod("keyRelease", Array(keycodes.GetField("CONTROL")))
robot1.RunMethod("keyRelease", Array(keycodes.GetField("V")))