window_handle

Returns the id of the game window.

Syntax:

window_handle();


Returns: Pointer


Description

With this function you can get the internal Windows id value (a pointer). This function is really only useful for extension writers who need the window handle to call Win32 API's in DLL code.

NOTE: This functions is for Windows and Mac OSX only (on Mac OSX it contains a pointer to an NSWindow class).


Example:

win_id = windows_handle();

The above code will store the game window id in a variable.


Back: The Game Window
Next: window_get_caption
© Copyright YoYo Games Ltd. 2015 All Rights Reserved