Jeremy76 0 Posted March 23, 2011 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 197 Posted March 23, 2011 Hi, pleace post the complete script. I cant see any radiobutton, mfg autoBert Share this post Link to post Share on other sites
Mallie99 2 Posted March 23, 2011 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