Platforms to show: All Mac Windows Linux Cross-Platform

Back to RemoteControlMBS module.

Previous items

RemoteControlMBS.PressOptionKey(keydown as boolean) as boolean

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

Returns true on success.

RemoteControlMBS.PressShiftKey(keydown as boolean) as boolean

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

Returns true on success.

RemoteControlMBS.WinBringProcessToTop(ProcessID as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 18.2 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Brings all windows of process to the front.

Returns true if function found at least one window.

RemoteControlMBS.WinBringWindowToTop(WindowHandle as Integer, SetFocus as boolean = true) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 13.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Brings a given window to front.
Example
dim h as Integer = RemoteControlMBS.WinFindWindow("", "Calculator")
call RemoteControlMBS.WinBringWindowToTop h

Pass any window handle, including windows from other applications.
If SetFocus is true, we also set the focus.
Returns true on success.

Some examples using this method:

RemoteControlMBS.WinCurrentProcessID 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
Returns the process ID of your application.

Returns 0 on any error.

RemoteControlMBS.WinFindWindow(ClassName as string, WindowName as string) 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
Finds a window based on the classname and/or the window name.
Example
dim h as Integer = RemoteControlMBS.WinFindWindow("SciCalc","")
msgbox hex(h)

One of the names can be an empty string so only the other name is used. Normally you should prefer the class name as it is not localized. The WindowsListMBS class can help you finding the class name of a window.
Returns 0 on any error.

Some examples using this method:

RemoteControlMBS.WinForegroundProcessID 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
Returns the process ID of the application which owns the foreground window.

Returns 0 on any error.

RemoteControlMBS.WinFrontWindowTitle 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
The title of the window which has the focus.
Example
title=remoteControlMBS.winfrontWindowTitle

May return "" on any error.

RemoteControlMBS.WinIsCapsLock as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 23.5 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries whether caps lock is set.
Example
// check state in a timer
if RemoteControlMBS.WinKeyIsCapsLock then
title = "caps lock on"
else
Title = "caps lock off"
end if

User may press the caps lock key to toggle between on and off.

RemoteControlMBS.WinIsNumLock as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 23.5 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries whether caps lock is set.
Example
// check state in a timer
if RemoteControlMBS.WinIsNumLock then
title = "num lock on"
else
Title = "num lock off"
end if

User may press the num lock key to toggle between on and off.

RemoteControlMBS.WinIsScrollLock as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Remote Control MBS ComputerControl Plugin 23.5 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries whether scroll lock is set.
Example
// check state in a timer
if RemoteControlMBS.WinIsScrollLock then
title = "scroll lock on"
else
Title = "scroll lock off"
end if

User may press the scroll lock key to toggle between on and off.
For macOS and Parallels, this key is F14 on the Mac keyboard.

RemoteControlMBS.WinIsWindowMinimized(WindowHandle 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
Checks whether the specified window is minimized.

Returns true if minimized.
Use RemoteControlMBS.WinFindWindow if you need to find a window handle.

RemoteControlMBS.WinIsWindowVisible(WindowHandle 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
Checks the visibility state of the specified window.

Returns true if visible or false if not.
Use RemoteControlMBS.WinFindWindow if you need to find a window handle.

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.


The biggest plugin in space...