intiHandle = window.GetHandle();
Applicable Classes: MainWin
Parameters: None
Return Value:
int iHandle - the handle (HWND) of the window as
an integer.
Description:
Returns the handle (HWND) parameter of the window
as an integer. This value can then be passed to a DLL Function.
The result can also be passed to the SetHandle
function for a window. By using this, the window can be used even if
the title (and therefore tag) changes midway through the run.
Example
Code |
use
"Notepad.dec";
System("c:\\windows\\system32\\Notepad.exe");
int i = Notepad.GetHandle();
# -or-
# int i = MainWin("Notepad*", "Notepad").GetHandle();
window w;
w.SetHandle(i);
w.SetText("Some Other Title");
w.Maximize();
w.Restore();
w.Close();
|
See Also:
MainWin Functions, User
Define DLLs, SetHandle