Sign in to follow this  
Followers 0
Bacost

Input and GUICtrlRead

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



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.

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  
Followers 0