JScript 71 Posted September 29, 2011 (edited) Can someone explain me how I do this? Here's the code: #Include <Memory.au3> $bVar = StringToBinary("JScript") $TcpRxLen = 256 $tMemB = DllStructCreate("byte[" & $TcpRxLen & "]") ; Create struct DllStructSetData($tMemB, 1, $bVar) $bOld = DllStructGetData($tMemB, 1) DllStructSetData($tMemB, 1, $bOld & StringToBinary(" - João Carlos.")) MsgBox(4096, "Teste", BinaryToString(DllStructGetData($tMemB, 1))) Thanks, João Carlos. Edited September 29, 2011 by jscript http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)Somewhere Out ThereJames IngramDownload Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! Share this post Link to post Share on other sites
martin 85 Posted September 29, 2011 Bitwise logical operators don't work like that in AutoIt. Look up BitAnd, BitOr etc. $var1 & $ var2 will give string concatenation if $var1 is a string otyherwise a boolean result. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Share this post Link to post Share on other sites
JScript 71 Posted September 29, 2011 Hello @martin, The code has become corrupted and corrupted the page too! I posted again here: João Carlos. http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)Somewhere Out ThereJames IngramDownload Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! Share this post Link to post Share on other sites