MBS Xojo Developer Conference and Training
Join us from 3rd to 6th May 2017 in Berlin, Germany.

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.
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.

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 Real Studio PDF Plugins