AlienStar Posted October 28, 2018 Share Posted October 28, 2018 hello everybody I have an input text in GUI and wanna get the result if I write an equation Local $eq_inp = guictrlcreateInput("", 20, 20 , 200, 40 ) Local $bt = GUICtrlCreateButton("Calculat", 50, 200, 75, 26) While 1 $GUIMsg = GUIGetMsg() Select Case $GUIMsg = $bt $equation = GUICtrlRead($eq_inp) Msgbox(0,"result",$equation) EndSelect WEnd for example: I wanna write "5+1" in the input and get a message with "6" please help Link to comment Share on other sites More sharing options...
pixelsearch Posted October 28, 2018 Share Posted October 28, 2018 Hi AlienStar Execute() should do it : $eq_inp = "5+1" $equation = Execute($eq_inp) Msgbox(0, "", $equation) ; displays 6 AlienStar 1 Link to comment Share on other sites More sharing options...
AlienStar Posted October 28, 2018 Author Share Posted October 28, 2018 6 hours ago, pixelsearch said: Hi AlienStar Execute() should do it : $eq_inp = "5+1" $equation = Execute($eq_inp) Msgbox(0, "", $equation) ; displays 6 thanks so much it works well , amazing 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