Object Model Reference : Classes : C : CorelScriptTools : Methods : CorelScriptTools.GetAppHandle |
Function GetAppHandle() As Long
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 applications handle.
The return value specifies a numeric variable that is passed the Application Instance Handle.
Here is a code example:
hand = GETAPPHANDLE() |
Copyright 2013 Corel Corporation. All rights reserved.