Object Model Reference : Classes : C : CorelScriptTools : Methods : CorelScriptTools.GetWinHandle |
Function GetWinHandle() As Long
Member of CorelScriptTools
The GetWinHandle returns the window handle for the window that is running the script. For example, if you are running the script from the Corel SCRIPT Editor, GetWinHandle returns the Editors Windows handle. If you run a script from CorelDRAW, GetWinHandle returns the CorelDRAW Windows handle. This function is used in conjunction with DLL calls that require the windows handle.
The GetWinHandle method specifies a numeric variable that is passed the windows handle.
• |
If you run a Corel SCRIPT executable, the GetWinHandle function returns 0.
|
Here is a code example:
hand = GETWINHANDLE() |
Copyright 2013 Corel Corporation. All rights reserved.