Jump to content

Recommended Posts

Posted

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.

Posted

That makes no sense.

Just post description of required parameters for Driver_Write function.

The Driver_Write function takes String and long as their parameters.

Posted

And that long value, what is the meaning of that parameter? Is that the size of $Buffer value or what?

What's with $WBuffer[128]?

If I say that decimal value is 12345. What would be its byte value? What value are you expecting?

♡♡♡

.

eMyvnE

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...