cSetEditText

Changes the contents of an Edit Box.

Syntax:

cSetEditText( hwnd, newtext)

Parameters:

(i) hwnd EditBox handle from a cWndBy... function.

(s) newtext New EditBox contents.

Returns:

(i) 1 if successful, 0 if operation failed.

 

This function is used to modify the contents of edit controls.

 

Example:

AddExtender("wwctl44i.dll",0,"wwctl64i.dll") 
Run("notepad.exe","")
SendMenusTo("~Notepad","FileOpen")
WinWaitExist("Open",5)
openwnd=DllHwnd("Open")
editwnd=cWndbyid(openwnd,1152)
mask=cSetEditText(editwnd, "*.*")
Message("Open file mask changed to","*.*")
Exit

See Also:

cGetEditText, cSetLBItem, cSetCBItem