Jump to content
Sign in to follow this  
xapu

unpack() function from php to autoit?

Recommended Posts

xapu

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!

Share this post


Link to post
Share on other sites
xapu

nobody knows anything?

Share this post


Link to post
Share on other sites
KaFu

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.

Share this post


Link to post
Share on other sites
xapu

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

Share this post


Link to post
Share on other sites
KaFu

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

Share this post


Link to post
Share on other sites
xapu

thanks ^^

i will look it

Share this post


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
Sign in to follow this  

×