Function Reference


ControlShow

Shows a control that was hidden.

ControlShow ( "title", "text", controlID )

Parameters

title The title/hWnd/class of the window to access. See Title special definition.
text The text of the window to access. See Text special definition.
controlID The control to interact with. See Controls.

Return Value

Success: 1.
Failure: 0 if window/control is not found.

Related

ControlCommand, ControlEnable, ControlHide

Example

Example()

Func Example()
        ; Run Notepad
        Run("notepad.exe")

        ; Wait 10 seconds for the Notepad window to appear.
        Local $hWnd = WinWait("[CLASS:Notepad]", "", 10)

        ; Hide the edit control of Notepad using the handle returned by WinWait.
        ControlHide($hWnd, "", "Edit1")

        ; Wait for 2 seconds.
        Sleep(2000)

        ; Show the edit control of Notepad using the handle returned by WinWait.
        ControlShow($hWnd, "", "Edit1")

        ; Wait for 2 seconds.
        Sleep(2000)

        ; Close the Notepad window using the handle returned by WinWait.
        WinClose($hWnd)
EndFunc   ;==>Example