Platforms to show: All Mac Windows Linux Cross-Platform

Back to RemoteControlMBS module.

Previous items

RemoteControlMBS.WinKeyboardName as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 8.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Returns the name of the current Windows keyboard layout.

RemoteControlMBS.WinKeyIsDown(virtualkey as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 8.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Tests whether a given key is currently pressed.

RemoteControlMBS.WinMouseClick(x as Integer, y as Integer, AbsolutePosition as boolean, MouseButton1 as boolean) as boolean   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 8.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
This item is deprecated and should no longer be used. You can use WinMouseClick with integer parameters instead.
Peforms a mouse click on the given position.

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:

RemoteControlMBS.WinMouseClick(x as Integer, y as Integer, AbsolutePosition as boolean, MouseButton1 as boolean, MouseButton2 as boolean) as boolean   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 8.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
This item is deprecated and should no longer be used. You can use WinMouseClick with integer parameters instead.
Peforms a mouse click on the given position.

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.

Deprecated. Please use the version taking integers, so you can click only one button without others.

See also:

RemoteControlMBS.WinMouseClick(x as Integer, y as Integer, AbsolutePosition as boolean, MouseButton1 as boolean, MouseButton2 as boolean, MouseButton3 as boolean) as boolean   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 8.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
This item is deprecated and should no longer be used. You can use WinMouseClick with integer parameters instead.
Peforms a mouse click on the given position.

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.

Deprecated. Please use the version taking integers, so you can click only one button without others.

See also:

RemoteControlMBS.WinMouseClick(x as integer, y as integer, AbsolutePosition as boolean, MouseButton1 as Integer, MouseButton2 as Integer, MouseButton3 as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Peforms a mouse click on the given position.
Example
Const x = 100
Const y = 100

// press right mouse button

Dim success1 As Boolean = RemoteControlMBS.WinMouseClick(x, y, True, -1, 1, -1)

// and up
Dim success2 As Boolean = RemoteControlMBS.WinMouseClick(x, y, True, -1, 0, -1)

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.
Pass 1 to click mouse button down, 0 to release it or -1 to not touch the button.

See also:

Some examples using this method:

RemoteControlMBS.WinMousePositionX as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 12.3 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries the current mouse position.

RemoteControlMBS.WinMousePositionY as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 12.3 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries the current mouse position.

RemoteControlMBS.WinMoveMouse(x as Integer, y as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 8.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Moves the mouse cursor to the given position.

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.

Some examples using this method:

RemoteControlMBS.WinPressControlKey(keydown as boolean) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 8.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Presses the ctrl key.

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.

RemoteControlMBS.WinPressKey(ScanCode as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 8.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Performs a key event with the given data.

This methods creates a keydown and a keyup event.
Returns true on success.

See also:

Some examples using this method:

RemoteControlMBS.WinPressKey(ScanCode as Integer, keydown as boolean) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 8.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Performs a key event with the given data.

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:

RemoteControlMBS.WinPressKey(virtualkey as Integer, ScanCode as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 8.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Performs a key event with the given data.

This methods creates a keydown and a keyup event.
Returns true on success.

See also:

RemoteControlMBS.WinPressKey(virtualkey as Integer, ScanCode as Integer, keydown as boolean) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 8.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Performs a key event with the given data.

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:

RemoteControlMBS.WinPressOptionKey(keydown as boolean) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 8.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Presses the alt key.

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.

RemoteControlMBS.WinPressShiftKey(keydown as boolean) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 8.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Presses the shift key.

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.

Some examples using this method:

RemoteControlMBS.WinScanCodeToVirtualKeyCode(ScanCode as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 8.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Searches the virtual key code for the given scancode.

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.

Some examples using this method:

RemoteControlMBS.WinSendMessage(Win as window, Msg as Integer, lParam as Integer, WParam as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 10.1 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Sends a Windows message to a given window.
Example
const WM_CLOSE = &h0010

call RemoteControlMBS.WinSendMessage(window1, WM_CLOSE, 0, 0)

The result depends on the message command.

See also:

RemoteControlMBS.WinSendMessage(WindowHandle as Integer, Msg as Integer, lParam as Integer, WParam as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 10.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
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

The result depends on the message command.

See also:

RemoteControlMBS.WinShowWindow(WindowHandle as Integer, CmdShow as Integer) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 15.0 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Shows or hides a window.

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.

RemoteControlMBS.WinVirtualKeyCodeToCharCode(VirtualKeyCode as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 8.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries the char code for a virtual key code.

Returns 0 on failure.

Some examples using this method:

RemoteControlMBS.WinVirtualKeyCodeToScanCode(VirtualKeyCode as Integer) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 8.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Finds the scan code to match the given virtual key code.

Returns 0 on failure.

Some examples using this method:

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 iOS Targets
method Remote Control MBS ComputerControl Plugin 8.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Returns for a given character which combination of key code and modifiers created the character.

For Character, you should use asc(string), but you may need to convert the string to Windows ANSI text encoding.

Returns 0 on failure.

Some examples using this method:

Previous items

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


💬 Ask a question or report a problem
The biggest plugin in space...