Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items Next items

RemoteControlMBS.MacMouseWheel(wheel1 as Integer, wheel2 as Integer) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 Yes No No Yes, macOS only No
Function: Performs a wheel event.
Example:
call RemoteControlMBS.MacMouseWheel 10,5
Notes:
Returns true on success.
A typical value for the wheel changes are in range from -10 to 10.

See also:

Feedback, Comments & Corrections

RemoteControlMBS.MacMoveMouse(x as Double, y as Double) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 Yes No No Yes, macOS only No
Function: Moves the mouse to the given position.
Example:
call RemoteControlMBS.MacMoveMouse(100,100)
Notes:
Returns true on success.
On Mac does not generate mouse events.

Feedback, Comments & Corrections

RemoteControlMBS.MacPressCommandKey(keydown as boolean) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 Yes No No Yes, macOS only No
Function: Presses the command 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.MacPressControlKey(keydown as boolean) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 Yes No No Yes, macOS 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.MacPressKey(keychar as Integer, virtualkey as Integer) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 Yes No No Yes, macOS only No
Function: Presses the given key.
Notes:
keychar is the ASCII code of the key you press and virtualkey is the key code.
Returns true on success.
Peforms a key down and a key up event.

See also:

Feedback, Comments & Corrections

RemoteControlMBS.MacPressKey(keychar as Integer, virtualkey 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 Yes No No Yes, macOS only No
Function: Presses the given key.
Notes:
keychar is the ASCII code of the key you press and virtualkey is the key code.
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.MacPressOptionKey(keydown as boolean) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 Yes No No Yes, macOS only No
Function: Presses the option key. (labeled with alt)
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.MacPressShiftKey(keydown as boolean) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 Yes No No Yes, macOS 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.MacProcessCount as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 Yes No No Yes, macOS only No
Function: Counts the high level processes.
Example:
msgBox str(remoteControlMBS.macprocessCount)

Feedback, Comments & Corrections

RemoteControlMBS.MacProcessName(index as Integer) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 Yes No No Yes, macOS only No
Function: The name of the process with the given index.
Example:
dim i,c as Integer

// search iChat and make it visible
c=remoteControlMBS.macprocesscount
for i=0 to c-1
if remoteControlMBS.macprocessname(i)="iChat" then
remoteControlMBS.macprocessVisible(i)=true
end if
next
Notes: Index is from 0 to MacProcessCount-1.

Feedback, Comments & Corrections

RemoteControlMBS.MacProcessVisible(index as Integer) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 Yes No No Yes, macOS only No
Function: Whether a process is visible or not.
Example:
dim i,c as Integer

// search Safari and make it invisible
c=remoteControlMBS.macprocesscount
for i=0 to c-1
if remoteControlMBS.macprocessname(i)="Safari" then
remoteControlMBS.macprocessVisible(i)=false
end if
next
Notes:
Index is from 0 to MacProcessCount-1.
(Read and Write computed property)

Feedback, Comments & Corrections

RemoteControlMBS.MacTextForKeyCode(keycode as Integer, KeyAction as Integer, ModifierState as Integer) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 Yes No No Yes, macOS only No
Function: Translates a keycode to a string.
Example:
// try some keycodes like e, E, € or é
dim key as string = "@"

const kCommandKey = 1
const kShift = 2
const kCapsLock = 4
const kOption = 8
const kControl = 16

// with no modifiers
for i as Integer = 0 to 127

dim s as string = RemoteControlMBS.MacTextForKeyCode(i, 3, 0)

if StrComp(key, s, 0) = 0 then
MsgBox "Found with keycode "+str(i)
Return
end if

next

// with shift
for i as Integer = 0 to 127

dim s as string = RemoteControlMBS.MacTextForKeyCode(i, 3, kShift)

if StrComp(key, s, 0) = 0 then
MsgBox "Found with keycode "+str(i)+" with Shift"
Return
end if

next

// with option
for i as Integer = 0 to 127

dim s as string = RemoteControlMBS.MacTextForKeyCode(i, 3, kOption)

if StrComp(key, s, 0) = 0 then
MsgBox "Found with keycode "+str(i)+" with Option"
Return
end if

next
Notes:
Works only with Unicode keyboard layouts which need Mac OS X 10.5.

Modifier values:
Command Key1
Shift2
CapsLock4
Option8
Control16

Possible constants for the Key Action:
kUCKeyActionDown0The user is pressing the key.
kUCKeyActionUp1The user is releasing the key.
kUCKeyActionAutoKey2The user has the key in an "auto-key" pressed state that is, the user is holding down the key for an extended period of time and is thereby generating multiple key strokes from the single key.
kUCKeyActionDisplay3The user is requesting information for key display, as in the Key Caps application.

Feedback, Comments & Corrections

RemoteControlMBS.MouseClick(x as Integer, y as Integer, down as boolean) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 8.4 Yes Yes Yes Yes No
Function: Performs a mouse click.
Notes:
The mouse cursor is moved to the given position and the first mouse button is pressed.
Returns true on success.

Feedback, Comments & Corrections

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

Feedback, Comments & Corrections

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

Feedback, Comments & Corrections

RemoteControlMBS.MoveMouse(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 Yes Yes Yes Yes No
Function: Moves the mouse to the given location.
Notes:
Returns true on success.
On Mac does not generate mouse events.

Feedback, Comments & Corrections

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

Feedback, Comments & Corrections

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

Feedback, Comments & Corrections

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

Feedback, Comments & Corrections

RemoteControlMBS.WinBringProcessToTop(ProcessID as Integer) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 18.2 Yes Yes Yes Yes No
Function: Brings all windows of process to the front.
Notes: Returns true if function found at least one window.

Feedback, Comments & Corrections

RemoteControlMBS.WinBringWindowToTop(WindowHandle as Integer, SetFocus as boolean = true) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Remote Control MBS ComputerControl Plugin 13.2 No Yes No Yes, Windows only No
Function: Brings a given window to front.
Example:
dim h as Integer = RemoteControlMBS.WinFindWindow("", "Calculator")
call RemoteControlMBS.WinBringWindowToTop h
Notes:
Pass any window handle, including windows from other applications.
If SetFocus is true, we also set the focus.
Returns true on success.

Feedback, Comments & Corrections

RemoteControlMBS.WinCurrentProcessID 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: Returns the process ID of your application.
Notes: Returns 0 on any error.

Feedback, Comments & Corrections

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

Feedback, Comments & Corrections

RemoteControlMBS.WinForegroundProcessID 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: Returns the process ID of the application which owns the foreground window.
Notes: Returns 0 on any error.

Feedback, Comments & Corrections

RemoteControlMBS.WinFrontWindowTitle as string
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: The title of the window which has the focus.
Example:
title=remoteControlMBS.winfrontWindowTitle
Notes: May return "" on any error.

Feedback, Comments & Corrections

RemoteControlMBS.WinIsWindowMinimized(WindowHandle 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: Checks wether the specified window is minimized.
Notes:
Returns true if minimized.
Use RemoteControlMBS.WinFindWindow if you need to find a window handle.

Feedback, Comments & Corrections

RemoteControlMBS.WinIsWindowVisible(WindowHandle 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: Checks the visibility state of the specified window.
Notes:
Returns true if visible or false if not.
Use RemoteControlMBS.WinFindWindow if you need to find a window handle.

Feedback, Comments & Corrections

RemoteControlMBS.WinKeyboardName as string
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 the name of the current Windows keyboard layout.

Feedback, Comments & Corrections

RemoteControlMBS.WinKeyIsDown(virtualkey 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: Tests whether a given key is currently pressed.

Feedback, Comments & Corrections

RemoteControlMBS.WinMouseClick(x as Integer, y as Integer, AbsolutePosition as boolean, MouseButton1 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

Previous items Next items

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




Links
MBS FileMaker blog