smack Posted August 7, 2019 Share Posted August 7, 2019 (edited) Hello, in an external textfile i can look for certain info for A. If A exists in this textfile, then i'm looking up a number. If A does not exists, an inputbox opens, so the user must enter that number. After this, the correct radiobutton is clicked(/checked) via ControlClick, but when A does exists and the value could be looked up, the ControlClick is acting like GUICtrlSetState($someradiobutton,$GUI_CHECKED) and certain values are not loaded because of that. I know i can check the state of a radiobutton by using BitAND(...), but i would like to know why ControlClick acts differently in this situation. My code: If $icansearchinexternalfile=1 Then ;if i can look for A in the external file $inputbox=StringMid($textfile[$line],2,3) ;line in textfile is 'A100' Else ;if i can not look for A in database $inputbox=InputBox("Alter","Please enter the number:","","",150,123) EndIf ;the found or entered number = 100 If $inputbox="100" Then ControlClick("","",$someradiobutton) EndIf Looking forward to a reply. Kind regards, Jurgen Edited August 8, 2019 by smack Link to comment Share on other sites More sharing options...
Seminko Posted August 15, 2019 Share Posted August 15, 2019 Please post your code so that we can try running it. It's hard figuring out what's wrong from what you posted. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now