Sign in to follow this  
Followers 0
xapu

unpack() function from php to autoit?

7 posts in this topic

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



nobody knows anything?

Share this post


Link to post
Share on other sites

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

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

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

#6 ·  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

Share this post


Link to post
Share on other sites

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  
Followers 0