NTShell22.Process ActiveX DLL



Identification

NTShell22.Process

Description

This object allows the opening of processes with various differences of a range of conduct, one being a process pool, another a simply is just action of executing, but also allows wait feature with the option of using any file or URL to initiate the appropriate associated application. Wait may be by milliseconds, or indefinite.

Properties

ProgramCount (Long) (ReadOnly)

Description

Get the current number of process in the pool.

Functions

OpenProgram (Path) ProcessInfo

Parameters

Path String

Specifies the full path location to the process to add to the pool.

Description

Adds a process to the pool.

CloseProgram (Path)

Parameters

IndexKey Variant

Specifies the numerical index or string key name of an existing process.

Description

Removes a process from the process pool.

CloseAllPrograms ()

Description

Closes all process opened by the pooling method OpenProgram, clearing the collection.

IsRunning (Path) Variant

Parameters

EXENameorPID String

Specifies the path to be checked, returns non zero if the process is currently running, and otherwise zero. Supplying a path ensures the full location of the process must be found in performing a check. Supplying just a file name with out path will return the number of running process matches and/or the process ID. Supplying a process ID will look for just that specific process. The return value non zero holds the count of said process occurrences.

Description

Checks to see if a specified process is currently running.

Run (Path, [Params], [FileFocus], [Wait]) Long

Parameters

Path String

Specifies the full path location of the process to run.

 

[Params] String = ""

Specifies any parameters to be passed to the process.

 

[FileFocus] Integer = 0

Specifies the default window focus of the process, this is the same as normal window values.

 

[Wait] Boolean = False

Specifies whether the action will wait for the application to complete before continuing.

Description

Runs a specified path with out keeping track of it in the pool with extended options, including waiting for close.

Exec (Path, [Params], [FileFocus], [UseDIr]) Long

Parameters

Path String

Specifies the full path location of the process to run.

 

[Params] String = ""

Specifies any parameters to be passed to the process.

 

[FileFocus] Integer = 0

Specifies the default window focus of the process, this is the same as normal window values.

 

[UseDir] Boolean = False

Specifies whether the action will split the filename from the folder and specify the working directory separate.

Description

Executes a specified file's associated process with extended options independent of the pool.

Automation

Object:Init (self)

Parameters

self Object

A reference to the object.

Description

Optional event that is called when the object is initialized.

Object:Term (self)

Parameters

self Object

A reference to the object.

Description

Optional event that is called when the object is terminated.