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
Jos

Maybe your question is too generic?

What exactly do you want to do as Unpack() has several options as far as I know?


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.