Posted by Catur Nugroho | File under :

Autoit Control Hide Using C#

Hides a control.
ControlHide ( "title", "text", controlID )

Parameters

title The title of the window to access.
text The text of the window to access.
controlID The control to interact with. See Controls.

Return Value

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

Remarks

None.

Source : Autoit Help Document

Source Code Autoit Control Hide In C#

 


Parameters Required :
Title : [CLASS:Notepad]
Text : ""
Control : Edit1

private void controlHidebutton_Click(object sender, EventArgs e)
        {
            //open notepad program
            autoit.Run("notepad.exe", "", 1);

            //wait notepad opened until 10 seconds
            autoit.WinWait("[CLASS:Notepad]", "", 10);

            autoit.ControlHide("[CLASS:Notepad]", "", "Edit1");
        }


Download Full Source Code

0 comments:

Post a Comment