Jump to content

Recommended Posts

Posted

hi!

i need to translate some php code to autoit and i have a problem..

anyone know the equivalent of unpack() to use in AutoIt?

or some way to reach the same result?

thanks!

Posted

PHP pack / unpack seems to be a wrapper for several functions. The translation to autoit depends on the conversion (format) you want to perform. Take a look at the help-file function, e.g. Asc, AscW, Chr & ChrW.

Posted

i need to do this unpack('V',fread($handle,4))

V seems to unpack in unsigned short.. but i don´t know how to do this in autoit

sorry for my bad english

Posted (edited)

Doc says:

V - unsigned long (always 32 bit, little endian byte order)

Search forum for "little endian", 101 results on that one.

Edit:

E.g. take a look at by jchd, he's a real wizard regarding conversions :graduated:...

Edited by KaFu

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
×
×
  • Create New...