Extracts a number of bytes from a binary variant.
BinaryMid ( binary, start [, count] )
| binary | The binary data to evaluate. |
| start | The byte position to start. (1 = first byte) |
| count | [optional] The number of bytes to extract. By default the entire remainder of the binary data. |
; Create the binary data 0x10203040
Local $binary = Binary("0x10203040")
Local $extract = BinaryMid($binary, 2, 2)
MsgBox(0, "2nd and 3rd bytes are", $extract)