Update Control Without having to click Submit

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
PaulLeavitt
Posts: 58
Joined: 21 Oct 2014, 10:04

Update Control Without having to click Submit

17 Mar 2015, 10:35

Hey All! So I bet the has already been covered but I couldn't find it, so if you know where the answer is, simply point me in the right direction!
I have a GUI with two radio check boxes, and I would like to show/hide some commands based on which radio is selected. However, I would prefer not to have to create a new GUI, or have to click the Submit button to do so. Is there a way to trigger guicontrol without submitting the gui?
Thanks!
Paul
kon
Posts: 1756
Joined: 29 Sep 2013, 17:11

Re: Update Control Without having to click Submit

17 Mar 2015, 10:57

You could specify a g-label for the radio buttons. Then, in the g-label subroutine use the A_ThisLabel or GuiControlGet and GuiControl commands to modify the Gui.

Edited aprox. 4 min. after initial post.
User avatar
PaulLeavitt
Posts: 58
Joined: 21 Oct 2014, 10:04

Re: Update Control Without having to click Submit

17 Mar 2015, 11:06

Ah, thank you again Kon! That works great! I just had to add "Nohide" to the submit command in the subroutine. Works like a charm!
Thanks again!
Paul

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], mstrauss2021 and 337 guests