Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items

RemoteControlMBS.WinMouseClick(x as Integer, y as Integer, AbsolutePosition as boolean, MouseButton1 as boolean, MouseButton2 as boolean) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 No Yes No Yes, Windows only No
Function: Peforms a mouse click on the given position.
Notes:
If AbsolutePosition is false the given coordinates are relative to the current position.
Returns true on success.

Be aware that the user may get into trouble if you forget to release a mouse button you pressed before. So always call this method another time to release the mouse buttons.

See also:

Feedback, Comments & Corrections

RemoteControlMBS.WinMouseClick(x as Integer, y as Integer, AbsolutePosition as boolean, MouseButton1 as boolean, MouseButton2 as boolean, MouseButton3 as boolean) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 No Yes No Yes, Windows only No
Function: Peforms a mouse click on the given position.
Notes:
If AbsolutePosition is false the given coordinates are relative to the current position.
Returns true on success.

Be aware that the user may get into trouble if you forget to release a mouse button you pressed before. So always call this method another time to release the mouse buttons.

See also:

Feedback, Comments & Corrections

RemoteControlMBS.WinMousePositionX as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 12.3 No Yes No Yes, Windows only No
Function: Queries the current mouse position.

Feedback, Comments & Corrections

RemoteControlMBS.WinMousePositionY as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 12.3 No Yes No Yes, Windows only No
Function: Queries the current mouse position.

Feedback, Comments & Corrections

RemoteControlMBS.WinMoveMouse(x as Integer, y as Integer) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 No Yes No Yes, Windows only No
Function: Moves the mouse cursor to the given position.
Notes:
Returns true on success.
Internally the coordinates are converted to normalized absolute coordinates which can lead to have the mouse one pixel off the requested position due to rounding.

Feedback, Comments & Corrections

RemoteControlMBS.WinPressControlKey(keydown as boolean) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 No Yes No Yes, Windows only No
Function: Presses the ctrl key.
Notes:
Returns true on success.

Be aware that the user may get into trouble if you forget to release a key you pressed before. So always call this method another time to release the key.

Feedback, Comments & Corrections

RemoteControlMBS.WinPressKey(ScanCode as Integer) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 No Yes No Yes, Windows only No
Function: Performs a key event with the given data.
Notes:
This methods creates a keydown and a keyup event.
Returns true on success.

See also:

Feedback, Comments & Corrections

RemoteControlMBS.WinPressKey(ScanCode as Integer, keydown as boolean) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 No Yes No Yes, Windows only No
Function: Performs a key event with the given data.
Notes:
Returns true on success.

Be aware that the user may get into trouble if you forget to release a key you pressed before. So always call this method another time to release the key.

See also:

Feedback, Comments & Corrections

RemoteControlMBS.WinPressKey(virtualkey as Integer, ScanCode as Integer) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 No Yes No Yes, Windows only No
Function: Performs a key event with the given data.
Notes:
This methods creates a keydown and a keyup event.
Returns true on success.

See also:

Feedback, Comments & Corrections

RemoteControlMBS.WinPressKey(virtualkey as Integer, ScanCode as Integer, keydown as boolean) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 No Yes No Yes, Windows only No
Function: Performs a key event with the given data.
Notes:
Returns true on success.

Be aware that the user may get into trouble if you forget to release a key you pressed before. So always call this method another time to release the key.

See also:

Feedback, Comments & Corrections

RemoteControlMBS.WinPressOptionKey(keydown as boolean) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 No Yes No Yes, Windows only No
Function: Presses the alt key.
Notes:
Returns true on success.

Be aware that the user may get into trouble if you forget to release a key you pressed before. So always call this method another time to release the key.

Feedback, Comments & Corrections

RemoteControlMBS.WinPressShiftKey(keydown as boolean) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 No Yes No Yes, Windows only No
Function: Presses the shift key.
Notes:
Returns true on success.

Be aware that the user may get into trouble if you forget to release a key you pressed before. So always call this method another time to release the key.

Feedback, Comments & Corrections

RemoteControlMBS.WinScanCodeToVirtualKeyCode(ScanCode as Integer) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 No Yes No Yes, Windows only No
Function: Searches the virtual key code for the given scancode.
Notes:
Each key has a hardware dependend scan code. For each scancode you can get the virtual key code which is hardware independend.

Returns 0 on failure.

Feedback, Comments & Corrections

RemoteControlMBS.WinSendMessage(Win as window, Msg as Integer, lParam as Integer, WParam as Integer) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 10.1 No Yes No Yes, Windows only No
Function: Sends a Windows message to a given window.
Example:
const WM_CLOSE = &h0010

call RemoteControlMBS.WinSendMessage(window1, WM_CLOSE, 0, 0)
Notes: The result depends on the message command.

See also:

Feedback, Comments & Corrections

RemoteControlMBS.WinSendMessage(WindowHandle as Integer, Msg as Integer, lParam as Integer, WParam as Integer) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 10.1 No Yes No Yes, Windows only No
Function: Sends a Windows message to a given window.
Example:
const WM_CLOSE = &h0010
dim h as Integer = RemoteControlMBS.WinFindWindow("SciCalc","")

call RemoteControlMBS.WinSendMessage(h, WM_CLOSE, 0, 0) // Closes Calc
Notes: The result depends on the message command.

See also:

Feedback, Comments & Corrections

RemoteControlMBS.WinShowWindow(WindowHandle as Integer, CmdShow as Integer) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 15.0 No Yes No Yes, Windows only No
Function: Shows or hides a window.
Notes:
CmdShow can be:
0Hide
1Show normal
2Show minimized
3Maximize
4Show without activating
5Show
6Minimize
7Show minimized without activating
8Show normal without activating
9Restore
10Show default
11Force minimized
Use RemoteControlMBS.WinFindWindow if you need to find a window handle.

Feedback, Comments & Corrections

RemoteControlMBS.WinVirtualKeyCodeToCharCode(VirtualKeyCode as Integer) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 No Yes No Yes, Windows only No
Function: Queries the char code for a virtual key code.
Notes: Returns 0 on failure.

Feedback, Comments & Corrections

RemoteControlMBS.WinVirtualKeyCodeToScanCode(VirtualKeyCode as Integer) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 No Yes No Yes, Windows only No
Function: Finds the scan code to match the given virtual key code.
Notes: Returns 0 on failure.

Feedback, Comments & Corrections

RemoteControlMBS.WinVirtualKeyForASCII(Character as Integer, byref VirtualKeyCode as Integer, Byref ShiftKey as boolean, byref ControlKey as Boolean, byref AltKey as boolean) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 No Yes No Yes, Windows only No
Function: Returns for a given character which combination of key code and modifiers created the character.
Notes:
For Character, you should use asc(string), but you may need to convert the string to Windows ANSI text encoding.

Returns 0 on failure.

Feedback, Comments & Corrections

Previous items

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





Links
MBS Xojo tutorial videos