Jump to content
Sign in to follow this  

Input and GUICtrlRead

Recommended Posts


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
if GUICtrlRead($Colo) = "Red" then 
    $Choose = 0xC9302C
    $Cords = 699,568

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  


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.