Jump to content
Sign in to follow this  
Jeremy76

Getting Raido buttons to work

Recommended Posts

Jeremy76

I am trying to find a way to use radio buttons to identify what inputbox I am getting data from. I have 6 radio buttons and 6 inputs. I want the user to be able to push a button and based on what radio button is selected get the data from the corresponding input. There are several different buttons but each button will need to collect data from the input based off what radio button is selected.

see the $input1 in the code I want to be able to change this based of what radio box is selected

Any help would be appericiated

Select
        Case $nMsg = $GUI_EVENT_CLOSE
            Exit
        case $nMsg = $Webm
            WinActivate("1 - DHR (127.0.0.1)")
            AutoItSetOption ("SendKeyDelay", 200)
            Send ("{F3 3}")
            send ("{pause}")
            send ("{HOME}")
            AutoItSetOption ("sendkeydelay", 0)
            send ("Webm Find "& guictrlread[b]($Input1)[/b]& "{enter}")
        case $nMsg = $DPPM
                WinActivate("1 - DHR (127.0.0.1)")
                AutoItSetOption ("SendKeyDelay", 200)
                Send ("{F3 3}")
                send ("{pause}")
                send ("{HOME}")
                AutoItSetOption ("sendkeydelay", 0)
                send ("DPPM,"& guictrlread($input1)& "{enter}")
        case $nMsg = $DPPL
                WinActivate("1 - DHR (127.0.0.1)")
                AutoItSetOption ("SendKeyDelay", 100)
                Send ("{F3 3}")
                send ("{pause}")
                send ("{HOME}")
                AutoItSetOption ("sendkeydelay", 0)
                send ("DPPL,"& guictrlread($input1)& "{enter}")
        Case $nMsg = $UCMS
                WinActivate("1 - DHR (127.0.0.1)")
                AutoItSetOption ("SendKeyDelay", 100)
                Send ("{F3 3}")
                send ("{pause}")
                send ("{HOME}")
                AutoItSetOption ("sendkeydelay", 0)
                send ("UCMS,"& guictrlread($input1)& "{enter}")

Share this post


Link to post
Share on other sites
AutoBert

Hi,

pleace post the complete script. I cant see any radiobutton,

mfg autoBert

Share this post


Link to post
Share on other sites
Mallie99

You may need to use the EVAL function?


Are you telling me something I need to know or something I want to know?

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.