Conversion user defined functions Reference

Below is a complete list of the user defined functions available in AutoIt. Click on a user defined function name for a detailed description.

When using them you need to add a #include <WinAPIConv.au3>.

 

User Defined Function Description
_WinAPI_CharToOem Converts a string into the OEM-defined character set
_WinAPI_ClientToScreen Converts the client coordinates of a specified point to screen coordinates
_WinAPI_DWordToFloat Converts a value of type DWORD to a value of type FLOAT
_WinAPI_DWordToInt Converts a value of type DWORD to a value of type INT
_WinAPI_FloatToDWord Converts a value of type FLOAT to a value of type DWORD
_WinAPI_FloatToInt Returns a 4 byte float as an integer value
_WinAPI_GetXYFromPoint Returns the X/Y values from a $tagPOINT structure
_WinAPI_GUIDFromString Converts a string GUID to binary form
_WinAPI_GUIDFromStringEx Converts a string GUID to binary form
_WinAPI_HashData Hashes a memory block
_WinAPI_HashString Hashes a string
_WinAPI_HiByte Returns the high BYTE of a 16-bit (2 bytes) value
_WinAPI_HiDWord Returns the high DWORD of a 64-bit (8 bytes) value
_WinAPI_HiWord Returns the high word of a longword value
_WinAPI_IntToDWord Converts a value of type INT to a value of type DWORD
_WinAPI_IntToFloat Returns a 4 byte integer as a float value
_WinAPI_LoByte Returns the low BYTE of a 16-bit (2 bytes) value
_WinAPI_LoDWord Returns the low DWORD of a 64-bit (8 bytes) value
_WinAPI_LongMid Extracts a number of bits from a DWORD (32-bit) value
_WinAPI_LoWord Returns the low word of a longword
_WinAPI_MAKELANGID Construct language id from a primary language id and a sublanguage id
_WinAPI_MAKELCID Construct locale id from a language id and a sort id
_WinAPI_MakeLong Returns a long int value from two int values
_WinAPI_MakeQWord Returns a QWORD value from two int values
_WinAPI_MakeWord Returns a WORD (16-bit) value from two BYTE (8-bit) values
_WinAPI_MultiByteToWideChar Maps a character string to a wide-character (Unicode) string
_WinAPI_MultiByteToWideCharEx Maps a character string to a wide-character (Unicode) string
_WinAPI_OemToChar Converts a string from the OEM-defined character set into either an ANSI string
_WinAPI_PointFromRect Returns the top/left coordinates of a $tagRECT as a $tagPOINT structure
_WinAPI_PrimaryLangId Extract primary language id from a language id
_WinAPI_ScreenToClient Converts screen coordinates of a specified point on the screen to client coordinates
_WinAPI_ShortToWord Converts a value of type SHORT to a value of type WORD
_WinAPI_StrFormatByteSize Converts a numeric value into a string that represents the number expressed as a size value in bytes, kilobytes, megabytes, or gigabytes
_WinAPI_StrFormatByteSizeEx Converts a numeric value into a string that represents the number expressed as separated groups of digits to the left of the decimal
_WinAPI_StrFormatKBSize Converts a numeric value into a string that represents the number expressed as a size value in kilobytes
_WinAPI_StrFromTimeInterval Converts a time interval to a string
_WinAPI_StringFromGUID Converts a binary GUID to string form
_WinAPI_SubLangId Extract sublanguage id from a language id
_WinAPI_SwapDWord Converts a ULONG from little-endian to big-endian, and vice versa
_WinAPI_SwapQWord Converts a ULONGLONG from little-endian to big-endian, and vice versa
_WinAPI_SwapWord Converts a USHORT from little-endian to big-endian, and vice versa
_WinAPI_WideCharToMultiByte Converts a UTF-16 (wide character) string to a multibyte string
_WinAPI_WordToShort Converts a value of type WORD to a value of type SHORT