nikosliapis Posted July 21, 2012 Posted July 21, 2012 Hello everybody, i again need your helpi need a way to convert a string to an expression.For example in the following script i used (without success) the "StringToBinary" command$a=True $b=True $expr = "$a And $b" MsgBox(0,"Correct", $a And $b) MsgBox(0,"Wrong", StringToBinary($expr))What i need is a way to "say" to autoit that the script $expr is not a script but an expression.Any ideas?Thanks in advance. Coding can be fun when you do it your own.
Moderators JLogan3o13 Posted July 21, 2012 Moderators Posted July 21, 2012 Try removing the quotes around your $expr statement, for starters: $expr = $a And $b "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
nikosliapis Posted July 21, 2012 Author Posted July 21, 2012 Jloganthank you for the replie but I'm afraid you didn't understand my question.$expr must be a string at the begining and i need to "convert" it to an expression.Remember that the posted code is only an example. Coding can be fun when you do it your own.
JohnOne Posted July 21, 2012 Posted July 21, 2012 MsgBox(0,"Wrong", Execute($expr)) AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
nikosliapis Posted July 21, 2012 Author Posted July 21, 2012 Thank you JohnOne that works pretty good. Coding can be fun when you do it your own.
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