blipton Posted January 23, 2019 Share Posted January 23, 2019 I'm trying a simple calculator example, but I've got a couple questions that are throwing me for a loop.. 1) How can you display the results in base 16 (hex) with the "0x" in front.. this doesn't seem to do it: GUICtrlSetData($Input1, "0x" + Hex(GUICtrlRead($Input1),4 ) ) Interestingly, the retrieving data part (GUICtrlRead), where the user entered data like "0x1234" works! 2) From the Language Reference Operators page, it doesn't seem like bit operations are supported.. i.e. not , left/right shift (<</>>), xor (^).. or math operations like modulus (%), not equal (!=) Is this correct? 3) If they're not supported, having the Windows calculator app pop open and posting messages to it seems a little hacky (assuming the user still has the .exe).. so instead, can autoit link to a dll and call functions from it, this way it's included and hidden? Are there other ways to accomplish this? Thanks! Link to comment Share on other sites More sharing options...
TheXman Posted January 23, 2019 Share Posted January 23, 2019 (edited) 1) The concatenation operator in AutoIt is an ampersand (&), not a plus (+) sign 2) Look at the Math functions in the Help file. Not equal in AutoIt is "<>". I guess you missed that on the operators page in the help file. Edited January 23, 2019 by TheXman CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman Link to comment Share on other sites More sharing options...
blipton Posted January 23, 2019 Author Share Posted January 23, 2019 (edited) Thanks! I was looking at the 'operators' section of the online docs.. no wonder I couldn't find it! https://www.autoitscript.com/autoit3/docs/intro/lang_operators.htm Edited January 23, 2019 by blipton 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