Jump to content

realtime informational updates


Recommended Posts

I guess that's a bad title but...

I'm trying to get this portion of my script off the ground. There are two branches I support and I would like the end user to click either location and have the address automatically update. I've tried using checkboxes and using a while statement, the only problem I'm running into is it won't run the rest of the script at all. My latest attempt.. is here

guictrlcreatelabel("Branch Location", 10, 60)
guictrlcreateradio("xxxxxx", 10, 80, 60, -1)
guictrlcreateradio("yyyyyy", 10, 100, 60, -1) 
guictrlcreatetab(80, 80, 170, 40)
guictrlcreatelabel($bell, 88, 87, 157, 27)
guictrlsetstate(13, $gui_hide)
guictrlcreatelabel($oly, 88, 87, 157, 27)
guictrlsetstate(14, $gui_hide)

while 1
    if guictrlgetstate(10) = $gui_checked then
        guictrlsetstate(13, $gui_show)
    elseif guictrlgetstate(11) = $gui_checked then
        guictrlsetstate(13, $gui_show)
    endif
        
    $msg = guigetmsg()
        if $msg = $gui_event_close then exitloop
wend

what am i doing wrong? I know it's polling the gui and checking those controls, but it's not showing the text like I would like it to. anyone have any experience with this?

Link to comment
Share on other sites

if GUICtrlRead(10) = $gui_checked then
      guictrlsetstate(13, $gui_show)
   elseif GUICtrlRead(11) = $gui_checked then
       guictrlsetstate(14, $gui_show)
   endif

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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...