Platforms to show: All Mac Windows Linux Cross-Platform

This item is deprecated and should no longer be used.
/ComputerControl/Press key/Write something
Function:
Required plugins for this example: MBS ComputerControl Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /ComputerControl/Press key/Write something
Project "Write something.xojo_binary_project"
Class Window1 Inherits Window
Control EditField1 Inherits TextArea
ControlInstance EditField1 Inherits TextArea
End Control
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
Control StaticText2 Inherits Label
ControlInstance StaticText2 Inherits Label
End Control
Control RoundRectangle1 Inherits RoundRectangle
ControlInstance RoundRectangle1 Inherits RoundRectangle
EventHandler Function MouseDown(X As Integer, Y As Integer) As Boolean Return true End EventHandler
EventHandler Sub MouseUp(X As Integer, Y As Integer) Write End EventHandler
End Control
Sub Write() dim p as PresskeyMBS p=new PresskeyMBS p.shift=true p.Charcode=asc("H") p.Keycode=4 p.virtualCode=-1 p.press p.shift=false p.Charcode=asc("e") p.Keycode=14 p.virtualCode=-1 p.press p.Charcode=asc("l") p.Keycode=&h25 p.virtualCode=-1 p.press p.press p.Charcode=asc("o") p.virtualCode=-1 p.Keycode=&h1F p.press p.Charcode=asc(" ") p.Keycode=&h31 p.virtualCode=-1 p.press p.shift=True p.Charcode=asc("W") p.virtualCode=-1 p.Keycode=&h0D p.press p.shift=false p.Charcode=asc("o") p.virtualCode=-1 p.Keycode=&h1F p.press p.Charcode=asc("r") p.Keycode=&h0F p.virtualCode=-1 p.press p.Charcode=asc("l") p.virtualCode=-1 p.Keycode=&h25 p.press p.Charcode=asc("d") p.virtualCode=-1 p.Keycode=&h02 p.press p.charcode=13 p.virtualCode=-1 p.keycode=&h24 p.press End Sub
End Class
MenuBar Menu
MenuItem UntitledMenu3 = ""
MenuItem UntitledMenu2 = "File"
MenuItem FileQuit = "Quit"
MenuItem UntitledMenu0 = "Edit"
MenuItem EditUndo = "Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cut"
MenuItem EditCopy = "Copy"
MenuItem EditPaste = "Paste"
MenuItem EditClear = "Clear"
End MenuBar
Class App Inherits Application
End Class
End Project

See also:

The items on this page are in the following plugins: MBS ComputerControl Plugin.

Feedback: Report problem or ask question.

The biggest plugin in space...