Jump to content

To check required checkbox


Recommended Posts

To activate the window and select the required checkbox (Ethernet), I used the below lines of code.

Is this correct? It is not working fine.

WinWaitActive ("Select the host interfaces you want to search ...", "[CLASS: Button]")

ControlCommand ("Select the host interfaces you want to search ...", "", "[TEXT: Ethernet]", "Check", "")

Link to comment
Share on other sites

winwaitactive Pauses execution of the script until the requested window is active. (it does not activate the window). to activate the window (focus) use WinActivate.

in controlcommand use CLASS instead TEXT

Saludos

Link to comment
Share on other sites

You could use Opt("WinTitleMatchMode", 2) before the command and then use WinWaitActive ("Select the host interfaces you want to search") if "Select the host interfaces you want to search" stays the same all the time it will recognize the window and then use controlclick with the x/y coordinates for that specific window where you want it to fill in the checkbox or then use your second command and see if it works now that autoit sees the window.

Edited by noobieautolearn
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...