Jump to content
Sign in to follow this  
alawoona

Au3gui Question - Radio Buttons

Recommended Posts

alawoona

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

Share this post


Link to post
Share on other sites
alawoona

Yeah - I thought that might be the case.......but the radio buttons start out all unchecked....just wanted to get back to this state without reloading the whole gui

Share this post


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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.