ui.getHandle
Description
Get a handle from a control enum.

Parameters
controlEnum integer (see list under Comments)

Return value
handle integer (0 if failed)

Example
-- display current active window handle
local handle = ui.getHandle(HANDLE_CURRENT_WINDOW)
print("The curerent active window handle is " .. handle)

Comments
Valid predefined enums are:
HANDLE_CURRENT_WINDOW
HANDLE_CONTACTS_CUSTOM_TAB
HANDLE_CHECKOUT_AREA
HANDLE_INVOICES_CUSTOM_TAB

Every window instance has a unique handle. For example if there are more than one invoice editors open, they each have their own handle.

See also
getCurrentWindowHandle

Back