dexto Posted July 17, 2011 Share Posted July 17, 2011 Is there a way to make sure TCPSend will not encode "0x3132" for example into "0x307833313332" which is binary for "0x3132'? Link to comment Share on other sites More sharing options...
JohnOne Posted July 17, 2011 Share Posted July 17, 2011 Are you sending it as a string "0x3132" or 0x3132 ? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
jaberwacky Posted July 17, 2011 Share Posted July 17, 2011 Huh? I thought that 0x307833313332 was 0x307833313332 and that 0x3132 was 0x3132? Isn't this hexadecimal btw? Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
JohnOne Posted July 17, 2011 Share Posted July 17, 2011 I dont know, I get confused with all that malarky. I see binary writen as 0x356685e44288 etc... which looks same as hex, but I always was led to believe that binary was 0s and 1s 1100101100 etc.. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
jaberwacky Posted July 17, 2011 Share Posted July 17, 2011 Oh no confusion I was referring to the op. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
dexto Posted July 17, 2011 Author Share Posted July 17, 2011 (edited) Are you sending it as a string "0x3132" or 0x3132 ? That might be the issue... let me dig in the code a little. Edit: Wouldn't 0x3132 be interpreted as hex? EDIT: isBinary saves the day. Thanks if not IsBinary($data) then $data=Binary($data) Edited July 17, 2011 by dexto 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