Jump to content

Au3gui Question - Radio Buttons


Recommended Posts

This script loads the GUI with neither radio button checked - If I select the first button, can I then uncheck it using ControlCommand - this script does not work ???

Note - it uses Larry's AU3GUI_sure.au3

----Begin-----

AU3GUI("GUI|title|Test|action|2|x|100|y|100|w|200|h|200")

AU3GUI("1|type|radio|text|Choice &1|x|30|y|20|w|100|submit|1")

AU3GUI("2|type|radio|text|Choice &2|x|30|y|60|w|100|submit|1")

AU3GUI("3|type")

Run("AU3GUI")

Winwait("Test")

While WinExists("Test")

Sleep(100)

If ControlCommand ( "Test", "", "Button1", "IsChecked", "" ) =1 Then

MsgBox(4096,"","Choice 1 is checked")

MsgBox(4096, "", "press OK to Uncheck this radio button")

ControlCommand("Test", "", "Button1", "UnCheck", "")

EndIf

Wend

#include "AU3GUI_sure.au3"

-----end----

Edited by alawoona
Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...