Jump to content

Recommended Posts

Hi

how to write file hex to binary like

local  $sData 
$sData  =   "00000000000000000000000000000000000000000000000000000000000000000000000000000000000"
$sData &= "0000000000000000000000000000000000000000000000000000000000000000000000000000000000"
$sData &= "000000000000000000000000000000000000000000000"

$read  =Binary("0x" & $sData)
$file   = FileOpen($read , 0)
$sfile  = Filewrite($sfile)

how to restore this hex to file i donno how to do it? any help!

Link to post
Share on other sites

Hi

how to write file hex to binary like

local  $sData 
$sData  =   "00000000000000000000000000000000000000000000000000000000000000000000000000000000000"
$sData &= "0000000000000000000000000000000000000000000000000000000000000000000000000000000000"
$sData &= "000000000000000000000000000000000000000000000"

$read  =Binary("0x" & $sData)
$file   = FileOpen($read , 0)
$sfile  = Filewrite($sfile)

how to restore this hex to file i donno how to do it? any help!

local  $sData
$sData  =   "00000000000000000000000000000000000000000000000000000000000000000000000000000000000"
$sData &= "0000000000000000000000000000000000000000000000000000000000000000000000000000000000"
$sData &= "000000000000000000000000000000000000000000000"

$read  =Binary("0x" & $sData)

;open a file "bintemp.123"
$file   = FileOpen("bintemp.123", BitOR(16,2));raw mode for binary write
 Filewrite($file,$read)
FileClose($file)
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.
Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...