Platforms to show: All Mac Windows Linux Cross-Platform

ProcessMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Process MBS Util Plugin ✅ Yes ✅ Yes ❌ No ❌ No Desktop, Console & Web
Adds the class ProcessMBS to Xojo 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.

For newer code on Mac, please check NSRunningApplicationMBS 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 using this class:

Blog Entries

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

PresskeyMBS   -   ProgressBackgroundViewMBS

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