xapu Posted November 6, 2010 Share Posted November 6, 2010 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! Link to comment Share on other sites More sharing options...
xapu Posted November 7, 2010 Author Share Posted November 7, 2010 nobody knows anything? Link to comment Share on other sites More sharing options...
Developers Jos Posted November 7, 2010 Developers Share Posted November 7, 2010 Maybe your question is too generic? What exactly do you want to do as Unpack() has several options as far as I know? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
KaFu Posted November 7, 2010 Share Posted November 7, 2010 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. OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
xapu Posted November 7, 2010 Author Share Posted November 7, 2010 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 Link to comment Share on other sites More sharing options...
KaFu Posted November 7, 2010 Share Posted November 7, 2010 (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 ... Edited November 7, 2010 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
xapu Posted November 7, 2010 Author Share Posted November 7, 2010 thanks ^^ i will look it Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now