beautypg.com

Status = enableinput ( windowhandle, enabled ), Windowhandle = find ( windowclass, windowname ), Windowhandle = getdesktop ( ) – Casio Naurtech CETerm Ver.5.5 Scripting Guide User Manual

Page 78: Windowlist = getlist ( )

background image

N

AURTECH

W

EB

B

ROWSER AND

T

ERMINAL

E

MULATION FOR

W

INDOWS

CE

AND

W

INDOWS

M

OBILE




CETerm Scripting Guide

Page 78


GetTopmost

Get the window with which the user is working.

IsEnabled

Check if window is enabled for input.

IsVisible

Check if window is visible.

IsWindow

Check if window handle is valid.

PostMessage

Post a message to a window.

SendMessage

Send a message to a window.

SetTopmost

Set a window as the current working window.

Show

Show or hide a window.

status = EnableInput ( windowHandle, enabled )

Enable or disable input to a window. If enabled is true then mouse and keyboard
input is enabled. Return true if window was previously disabled or false if
window was previously enabled. Check the Window property LastError to
determine the success of the method.

windowHandle = Find ( windowClass, windowName )

Find the handle of the top-level window that matches the given window class or
window name. Either argument may be an empty string. Return the non-zero
window handle or 0 if not found. Use the Window property LastError to get
additional error information.

windowHandle = GetDesktop ( )

Get the handle of the desktop window.

windowList = GetList ( )

Return a list of current top-level windows. The returned list is in the form of a
JavaScript array literal [ …] which contains JavaScript object literals {…}
containing information about each window. See Section 2.8 for details about
handling JavaScript literals. Return null if error. Use the Window property
LastError to get additional error information.

The returned literal has the following format:

[ {hwnd:0x7c010680, processID:0x0, text:"CursorWindow"},
{hwnd:0x7c012d70, processID:0xf79f79aa, text:""},
{hwnd:0x7c01cf20, processID:0x77452dda, text:"Edit Script 6"},
{hwnd:0x7c01bb70, processID:0x77452dda, text:"Scripting"},
{hwnd:0x7c0189c0, processID:0x77452dda, text:"S1 - Configure"},

This manual is related to the following products: