beebee Posted November 21, 2005 Posted November 21, 2005 Hi, I am trying to write a game querying utility. Is it possible to get UDPSend() to send in hex/bin rather than in String format? Or are there any plans to implement this feature in the near future? Best regards, beebee.
themax90 Posted November 21, 2005 Posted November 21, 2005 (edited) $String = "Your Text Here" UDPSend($SocketArray, _StringToHex($String)) On other side you must add: $String = UDPRecv($Socketarray) $String = _HexToString($String) Edited November 21, 2005 by AutoIt Smith
beebee Posted November 21, 2005 Author Posted November 21, 2005 $String = "Your Text Here"UDPSend($SocketArray, _StringToHex($String))On other side you must add:$String = UDPRecv($Socketarray)$String = _HexToString($String)My query request is actually meant for a War3 lan server. I had used a packet dump to get UDP data "\xf7\x2f\x10\x00\x50\x58\x33\x57\x14\x00\x00\x00\x00\x00\x00\x00" which will trigger the War3 lan server to return information about an active game. However, I'm unable to formulate the Hex/Bin string to send the data over using AutoIT due to its inability to send UDP packets in hex/bin form. I believe this feature can greatly enhance the usefulness of AutoIT in the creation of Internet tools in the future.
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