Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

ProcessMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Process MBS Util Plugin Yes Yes No Yes No
Function: Adds the class ProcessMBS to Realbasic to get details about all running applications.
Example:
// 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
myProcess.GetCurrentProcess
myCFDictionary = CFDictionaryMBS(myProcess.processInformationCFDictionary)
myCFObject = myCFDictionary.Value(newcfstringmbs("LSBackgroundOnly"))
myCFBoolean=CFBooleanMBS(myCFObject)

if myCFBoolean.Value then
MsgBox "is background"
else
MsgBox "is not background"
end if
Notes:
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.

Feedback, Comments & Corrections

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




Links
MBS Xojo PDF Plugins