InunoTaishou Posted June 22, 2014 Posted June 22, 2014 (edited) Trying to get 4 different numbers from the user, finally realize all $inpFourth = GUICtrlCreateInput("Fourth", 130, 70, 81, 20, $ES_Number) is doing is giving me what value these CreateInput is, not the value I put in the box $inpFirst = GUICtrlCreateInput("First", 25, 40, 81, 20, $ES_Number) $inpSecond = GUICtrlCreateInput("Second", 130, 40, 81, 20, $ES_Number) $inpThird = GUICtrlCreateInput("Third", 25, 70, 81, 20, $ES_Number) $inpFourth = GUICtrlCreateInput("Fourth", 130, 70, 81, 20, $ES_Number) So I need the user to put in four values, one in each input, and the script can pull the #s from that input and do the calculations I need. If that makes sense... Edited June 22, 2014 by InunoTaishou
Solution ghost11996 Posted June 22, 2014 Solution Posted June 22, 2014 Hi InunoTaishou GUICtrlCreateInput return Success value is the controlID of the control input If you want to read the values in the GUICtrlCreateInput, You need to use a function call GUICtrlRead : https://www.autoitscript.com/autoit3/docs/functions/GUICtrlRead.htm $InputValue1 = GUICtrlRead($inpFirst) $InputValue2 = GUICtrlRead($inpSecond) $InputValue3 = GUICtrlRead($inpThird) $InputValue4 = GUICtrlRead($inpFourth) InunoTaishou 1 [color=rgb(255,0,0);]C[/color][color=rgb(255,140,0);]a[/color][color=rgb(255,215,0);]n[/color] [color=rgb(255,255,0);]i[/color] [color=rgb(175,238,238);]e[/color][color=rgb(0,255,255);]a[/color][color=rgb(64,224,208);]t[/color] [color=rgb(0,0,205);]S[/color][color=rgb(0,0,255);]i[/color][color=rgb(0,0,128);]g[/color][color=rgb(75,0,130);]n[/color][color=rgb(128,0,128);]at[/color][color=rgb(238,130,238);]u[/color][color=rgb(221,160,221);]r[/color][color=rgb(230,230,250);]e[/color] [color=rgb(0,255,0);]?[/color] :ermm: [color=rgb(0,255,0);]Project: Mini Youtube BETA[/color]
InunoTaishou Posted June 22, 2014 Author Posted June 22, 2014 Hi InunoTaishou GUICtrlCreateInput return Success value is the controlID of the control input If you want to read the values in the GUICtrlCreateInput, You need to use a function call GUICtrlRead : https://www.autoitscript.com/autoit3/docs/functions/GUICtrlRead.htm $InputValue1 = GUICtrlRead($inpFirst) $InputValue2 = GUICtrlRead($inpSecond) $InputValue3 = GUICtrlRead($inpThird) $InputValue4 = GUICtrlRead($inpFourth) This was it, took me 3 hours to figure it out on my own.... I think I was putting GUICtrlRead() in the wrong spot or something cause I tried it multiple times... lol
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