Bacost Posted February 14, 2016 Posted February 14, 2016 I have an Input box, and I want that if you write red or black it choose a different cord and a diferent color i tried to do it like this but it is not working. GUICtrlRead($Colo) If = "Black" then $Choose = 0x444444 And $Cords = 1593,568 GUICtrlRead($Colo) If = "Red" then $Choose = 0xC9302C And $Cords = 699,568 I hope you can help me with this. Thanks for reading.
AutoBert Posted February 14, 2016 Posted February 14, 2016 Your snipet is not conform to AutoIt syntax. It must be if GUICtrlRead($Colo) = "Black" then $Choose = 0x444444 $Cords = 1593,568 EndIf if GUICtrlRead($Colo) = "Red" then $Choose = 0xC9302C $Cords = 699,568 EndIf So read the help=> Language Reference for understandig.
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