Xojo Developer Conference
Join us from 25th to 27th April 2018 in Denver.

Platforms to show: All Mac Windows Linux Cross-Platform

ProcessMBS class

class, Process, MBS Util Plugin (Process), class ProcessMBS,
Mac: Yes, Win: Yes, Linux: No, Console & Web: Yes, Feedback.

Function: Adds the class ProcessMBS to Realbasic to get details about all running applications.
// Shows how to use the processInformationCFDictionary function to
// decide on Mac OS X whether an application is a background only one.

dim myProcess as ProcessMBS
dim myCFDictionary as CFDictionaryMBS
dim myCFBoolean as CFBooleanMBS
dim myCFObject as CFObjectMBS

myProcess=new ProcessMBS
myCFDictionary = CFDictionaryMBS(myProcess.processInformationCFDictionary)
myCFObject = myCFDictionary.Value(newcfstringmbs("LSBackgroundOnly"))

if myCFBoolean.Value then
MsgBox "is background"
MsgBox "is not background"
end if
Requires Windows 95 or Windows 2000 to run on Windows.

To find all windows on Windows, use the WindowsListMBS class.
To find all windows on Mac OS X, use the CGSWindowListMBS class.

Process Transformation Types

Constant Value Description
kProcessTransformToBackgroundApplication 2 Turn application in a background application.
functional in Mac OS X 10.7 and later
kProcessTransformToForegroundApplication 1 Turn application in a foreground application.
kProcessTransformToUIElementApplication 4 Turn application in a user interface element application.
functional in Mac OS X 10.7 and later

This class has no sub classes.

Some properties using for this class:

Some examples which use this class:

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

PresskeyMBS   -   ProgressBar

MBS Xojo Plugins