Previous Document Next Document

Object Model Reference : Classes : C : CorelScriptTools : Methods : CorelScriptTools.GetAppHandle


CorelScriptTools.GetAppHandle

Function GetAppHandle() As Long

Description

Member of CorelScriptTools

The GetAppHandle method returns the Application Instance Handle for the Corel application that is running a script. For example, if you are running the script from the Corel SCRIPT Editor, GetAppHandle returns the Application Instance Handle for the Corel SCRIPT Editor; if you run a script from Corel VENTURA, GetApphandle the Application Instance Handle for Corel VENTURA. This function is used in conjunction with DLL calls that require the application’s handle.

The return value specifies a numeric variable that is passed the Application Instance Handle.

Example

Here is a code example:

hand = GETAPPHANDLE()

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.