Jump to content

Conversion


 Share

Recommended Posts

Hi All,

I am writing a script where i have to form a packet, such that when i frame the decimal value it should convert it into byte value.

Can any body suggest me which all function to use in this conversion.

I have formed the packet using Binary function, but still i am reaching the desired result.

here is the sample code:

Dim $WBuffer[128]

$WBuffer = Binary(81) & Binary(132) & Binary(3) & Binary(4) & Binary(0) & Binary(1) & Binary(189)

WritetoDriver($WBuffer,7)

Func WritetoDriver($Buffer,$length)

$Result = DllCall($DR_Plugin, "long", "Driver_Write", "Str", $Buffer, "long", $length)

MsgBox(0, "", $Result[0])

EndFunc

Please Reply

Thank you.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...