Previous Document Next Document

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


CorelScriptTools.GetWinHandle

Function GetWinHandle() As Long

Description

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 Editor’s 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 window’s handle.

The GetWinHandle method specifies a numeric variable that is passed the window’s handle.

 
If you run a Corel SCRIPT executable, the GetWinHandle function returns 0.
Example

Here is a code example:

hand = GETWINHANDLE()

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.