Yashied Posted July 3, 2012 Author Posted July 3, 2012 _WinAPI_GetEffectiveClientRect - $Ret declared but not used.Fixed. My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More...
guinness Posted July 12, 2012 Posted July 12, 2012 Yashied, Have a look at this #2192, seems certain constants are already declared, UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018
Yashied Posted July 16, 2012 Author Posted July 16, 2012 Fixed. My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More...
guinness Posted July 16, 2012 Posted July 16, 2012 (edited) Thanks. $ERROR_NO_TOKEN in APIErrors.au3 wasn't commented out as it's included in SecurityConstants.au3 so I commented it out and closed the Trac Ticket. Edited July 16, 2012 by guinness UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018
AdmiralAlkex Posted July 17, 2012 Posted July 17, 2012 The return value for the DllCall in _WinAPI_GetEnhMetaFileDescription was changed from UINT to INT but the MSDN docs say it should be UINT. What's up with that? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
Yashied Posted July 17, 2012 Author Posted July 17, 2012 The return value for the DllCall in _WinAPI_GetEnhMetaFileDescription was changed from UINT to INT but the MSDN docs say it should be UINT. What's up with that?This is only used for error retrieving (-1) where is more convenient to use INT type. My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More...
step887 Posted August 14, 2012 Posted August 14, 2012 Love all your functions, I think they are great..I have been trying to puzzle one out, but I can not puzzle out the callbackIf it is not too much trouble, could you add emun font sizes function?http://www.catch22.net/tuts/fixed-width-font-enumeration
Myicq Posted August 24, 2012 Posted August 24, 2012 This is a TRUE 5 star UDF. One question: would it be possible to add CultureInfo + examples of using it (in help file). See http://msdn.microsoft.com/en-us/library/yck8b540.aspx#Y0 Could look like: $culture = _WinApi_GetCultureInfo("de-DE") ConsoleWrite('German LocaleID ==> ' & _WinApi_CultureInfo("LCID") & @cr) ; must return 1031 as per assigned LCID list That way it would be trivial to make f.ex a language selector with localized names and everything being correct. AND to automagically setup a GUI for R2L writing systems. Just a suggestion... I am just a hobby programmer, and nothing great to publish right now.
ZipleR Posted September 18, 2012 Posted September 18, 2012 (edited) Firstly - I have to say you have a huge amount of functions built into this and must be a scriptaholic.... Nice work. Before you start attending SAA, would you be able to add any terminal services API's? Specifically WTSEnumerateSessions? Here's a list I found from Microsoft of functions they support. Terminal Services API Functions The following functions are used with Terminal Services. ProcessIdToSessionId VirtualChannelClose VirtualChannelEntry VirtualChannelInit VirtualChannelInitEvent VirtualChannelOpen VirtualChannelOpenEvent VirtualChannelWrite WTSCloseServer WTSDisconnectSession WTSEnumerateProcesses WTSEnumerateSessions WTSFreeMemory WTSLogoffSession WTSOpenServer WTSQuerySessionInformation WTSQueryUserConfig WTSSendMessage WTSSetUserConfig WTSShutdownSystem WTSTerminateProcess WTSVirtualChannelClose WTSVirtualChannelOpen WTSVirtualChannelPurgeInput WTSVirtualChannelPurgeOutput WTSVirtualChannelQuery WTSVirtualChannelRead WTSVirtualChannelWrite WTSWaitSystemEvent ProcessIdToSessionId Thanks! And hope you consider adding a few of these.. Edited September 18, 2012 by ZipleR
JScript Posted November 3, 2012 Posted November 3, 2012 (edited) @YashiedI have one suggestion for you:FindWindowExI did a code I'm using, but I know you will do much better!Edit: Anyway here's the code I made, if you think that gives to use it, of course!:; #FUNCTION# ==================================================================================================================== ; Name ..........: _WinAPI_FindWindowEx ; Description ...: Retrieves a handle to a window whose class name and window name match the specified strings. ; Syntax ........: _WinAPI_FindWindowEx($sClassName, $sWindowName[, $hParent = 0[, $hChildAfter = 0]]) ; Parameters ....: $sClassName - The class or atom created by a previous call to the RegisterClass or RegisterClassEx function. ; The atom must be placed in the low-order word of lpszClass; the high-order word must be zero. ; If lpszClass is a string, it specifies the window class name. The class name can be any name ; registered with RegisterClass or RegisterClassEx, or any of the predefined control-class names, ; or it can be MAKEINTATOM(0x8000). In this latter case, 0x8000 is the atom for a menu class. ; $sWindowName - The window name (the window's title). If this parameter is NULL, all window names match. ; $hParent - [optional] A handle to the parent window whose child windows are to be searched. ; If hwndParent is NULL, the function uses the desktop window as the parent window. ; The function searches among windows that are child windows of the desktop. ; If hwndParent is HWND_MESSAGE, the function searches all message-only windows. ; $hChildAfter - [optional] A handle to a child window. The search begins with the next child win in the Z order. ; The child window must be a direct child window of hParent, not just a descendant window. ; If hwndChildAfter is NULL, the search begins with the first child window of hwndParent. ; If hParent and hChildAfter are NULL, the function searches all top-level and message-only. ; Return values .: Success - The handle to the window ; Failure - 0 ; Author ........: JScript ; Modified ......: ; Remarks .......: The function searches child windows, beginning with the one following the specified child window. ; This function does not perform a case-sensitive search. ; Related .......: ; Link ..........: @@MsdnLink@@ FindWindowEx ; Example .......: No ; =============================================================================================================================== Func _WinAPI_FindWindowEx($sClassName, $sWindowName, $hParent = 0, $hChildAfter = 0) Local $aResult = DllCall("user32.dll", "hwnd", "FindWindowEx", "hwnd", $hParent, "hwnd", $hChildAfter, "wstr", $sClassName, "wstr", $sWindowName) If @error Then Return SetError(@error, @extended, 0) Return $aResult[0] EndFunc ;==>_WinAPI_FindWindowExThank you,JS Edited November 4, 2012 by JScript http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere!
netegg Posted November 20, 2012 Posted November 20, 2012 Hi, Yahied, I find that I can not change display resolution from 800x600 to 1376x768(max resolution) by using function_winapi_changescreenresex. How could I do?
Yashied Posted November 20, 2012 Author Posted November 20, 2012 (edited) I find that I can not change display resolution from 800x600 to 1376x768(max resolution) by using function_winapi_changescreenresex. How could I do?I don't know because I didn't wrote this function or something like. Edited November 20, 2012 by Yashied My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More...
GaRydelaMer Posted November 28, 2012 Posted November 28, 2012 (edited) Hi all @Yashied, you can add this functions to your next version. Exemples: Local $Number = -123456.569 ConsoleWrite(_WinAPI_GetCurrencyFormat(0, $Number) & @CR) ConsoleWrite(_WinAPI_GetCurrencyFormat(0, $Number, _WinAPI_CreateCurrencyFormatInfo(2, 1, 3, ',', ' ', 8, 3, '€')) & @CR) $Number = 123456.569 ConsoleWrite(_WinAPI_GetCurrencyFormat(0, $Number) & @CR) ConsoleWrite(_WinAPI_GetCurrencyFormat(0, $Number, _WinAPI_CreateCurrencyFormatInfo(2, 1, 3, ',', ' ', 8, 3, '€')) & @CR) Functions: expandcollapse popupGlobal Const $tagNUMBERFMT = 'uint NumDigits;uint LeadingZero;uint Grouping;ptr DecimalSep;ptr ThousandSep;uint NegativeOrder;' Global Const $tagCURRENCYFMT = $tagNUMBERFMT & 'uint PositiveOrder;ptr CurrencySymbol;' ; #FUNCTION# ==================================================================================================================== ; Name...........: _WinAPI_CreateCurrencyFormatInfo ; Description....: Creates a $tagCURRENCYFMT structure with the specified number formatting information. ; Syntax.........: _WinAPI_CreateCurrencyFormatInfo ( $iNumDigits, $iLeadingZero, $iGrouping, $sDecimalSep, $sThousandSep, $iNegativeOrder, $iPositiveOrder, $sCurrencySymbol ) ; Parameters.....: $iNumDigits - The number of fractional digits placed after the decimal separator. ; $iLeadingZero - Specifier for leading zeros in decimal fields, valid values: ; |0 - No leading zeros. ; |1 - Leading zeros. ; $iGrouping - The number of digits in each group of numbers to the left of the decimal separator. The values ; in the range 0 through 9 and 32 are valid. Typical examples are: 0 to group digits as in 123456789.00; ; 3 to group digits as in 123,456,789.00; and 32 to group digits as in 12,34,56,789.00. ; $sDecimalSep - The decimal separator string. ; $sThousandSep - The thousand separator string. ; $iNegativeOrder - The negative number mode, valid values: ; |0 - for example, (€1.1). ; |1 - for example, -€1.1. ; |2 - for example, €-1.1. ; |3 - for example, €1.1-. ; |4 - for example, (1.1€). ; |5 - for example, -1.1€. ; |6 - for example, 1.1-€. ; |7 - for example, 1.1€-. ; |8 - for example, -1.1 €. ; |9 - for example, -€ 1.1. ; |10- for example, 1.1 €-. ; |11 - for example, € 1.1-. ; |12 - for example, € -1.1. ; |13- for example, 1.1- €. ; |14- for example, (€ 1.1). ; |15- for example, (1.1 €). ; $iPositiveOrder - The positive number mode, valid values:. ; |0 - for example, €1.1. ; |1 - for example, 1.1€. ; |2 - for example, € 1.1. ; |3 - for example, 1.1 €. ; Return values..: $tagCURRENCYFMT structure that contains number formatting information. ; Author.........: GaRy delaMer ; Modified.......: ; Remarks........: Typically, the structure returned by this function is used in the _WinAPI_GetCurrencyFormat() function. ; Related........: ; Link...........: @@MsdnLink@@ CURRENCYFMT ; Example........: Yes ; =============================================================================================================================== Func _WinAPI_CreateCurrencyFormatInfo($iNumDigits, $iLeadingZero, $iGrouping, $sDecimalSep, $sThousandSep, $iNegativeOrder, $iPositiveOrder, $sCurrencySymbol) Local $tFMT = DllStructCreate($tagCURRENCYFMT & 'wchar[' & (StringLen($sDecimalSep) + 1) & '];wchar[' & (StringLen($sThousandSep) + 1) & '];wchar[' & (StringLen($sCurrencySymbol) + 1) & ']') DllStructSetData($tFMT, 1, $iNumDigits) DllStructSetData($tFMT, 2, $iLeadingZero) DllStructSetData($tFMT, 3, $iGrouping) DllStructSetData($tFMT, 4, DllStructGetPtr($tFMT, 9)) DllStructSetData($tFMT, 5, DllStructGetPtr($tFMT, 10)) DllStructSetData($tFMT, 6, $iNegativeOrder) DllStructSetData($tFMT, 7, $iPositiveOrder) DllStructSetData($tFMT, 8, DllStructGetPtr($tFMT, 11)) DllStructSetData($tFMT, 9, $sDecimalSep) DllStructSetData($tFMT, 10, $sThousandSep) DllStructSetData($tFMT, 11, $sCurrencySymbol) Return $tFMT EndFunc ;==>_WinAPI_CreateCurrencyFormatInfo ; #FUNCTION# ==================================================================================================================== ; Name...........: _WinAPI_GetCurrencyFormat ; Description....: Formats a number string as a number string customized for a locale specified by identifier. ; Syntax.........: _WinAPI_GetCurrencyFormat ( $LCID, $sNumber [, $tCURRENCYFMT] ) ; Parameters.....: $LCID - The locale identifier (LCID) that specifies the locale or one of the following predefined values. ; ; $LOCALE_INVARIANT ; $LOCALE_SYSTEM_DEFAULT ; $LOCALE_USER_DEFAULT ; ; Windows Vista or later ; ; $LOCALE_CUSTOM_DEFAULT ; $LOCALE_CUSTOM_UI_DEFAULT ; $LOCALE_CUSTOM_UNSPECIFIED ; ; $sNumber - The string containing the number string to format. This string can only contain the following ; characters. All other characters are invalid. ; ; Characters "0" through "9". ; A minus sign in the first character position if the number is a negative value. ; One decimal point (dot) if the number is a floating-point value. ; ; $tCURRENCYFMT - $tagCURRENCYFMT structure that contains number formatting information. If this parameter is omitted ; or 0, the function returns the string according to the number format for the specified locale. ; You can use the _WinAPI_CreateCurrencyFormatInfo() function to create this structure. ; Return values..: Success - The formatted number string. ; Failure - Empty string and sets the @error flag to non-zero. ; Author.........: GaRy delaMer ; Modified.......: ; Remarks........: None ; Related........: ; Link...........: @@MsdnLink@@ GetCurrencyFormat ; Example........: Yes ; =============================================================================================================================== Func _WinAPI_GetCurrencyFormat($LCID, $sNumber, $tCURRENCYFMT = 0) If Not $LCID Then $LCID = 0x0400 EndIf Local $Ret = DllCall('kernel32.dll', 'int', 'GetCurrencyFormatW', 'ulong', $LCID, 'dword', 0, 'wstr', $sNumber, 'ptr', DllStructGetPtr($tCURRENCYFMT), 'wstr', '', 'int', 2048) If (@error) Or (Not $Ret[0]) Then Return SetError(1, 0, '') EndIf Return $Ret[5] EndFunc ;==>_WinAPI_GetCurrencyFormat Edited November 28, 2012 by GaRydelaMer
guinness Posted January 15, 2013 Posted January 15, 2013 Will you be making any subsequent changes to this UDF? Thanks. UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018
jmon Posted January 16, 2013 Posted January 16, 2013 (edited) [...] ;$iGrouping [...] ;Typical examples are: 0 to group digits as in 123456789.00; ;3 to group digits as in 123,456,789.00; and 32 to group digits as in 12,34,56,789.00. [...] Looks like you made a typo in your example (You wrote '32 to group digits' instead of '2'). Edited January 16, 2013 by jmon [center]www.jmontserrat.comFile Sequence UDF - _StringExtractPaths - _StringTrimPattern - GuiCtrlSetOnTop - CalendarUDF[/center]
Kovacic Posted January 21, 2013 Posted January 21, 2013 Where can I find the latest? I am getting the duplicate function name on line 8108 in file WinAPIE.au3 I am using Version: 3.8 / 3.3.6.1 C0d3 is P0etry( ͡° ͜ʖ ͡°)
JohnOne Posted January 21, 2013 Posted January 21, 2013 http://www.autoitscript.com/site/autoit/downloads/ latest release version is 3.3.8.1 Kovacic 1 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Kovacic Posted January 21, 2013 Posted January 21, 2013 Sorry, let me rephrase that, I am using AutoIt Version: 3.3.8.1The version of WinAPIE.au3 I found says 3.8 / 3.3.6.1 in it.I am getting errors when even just trying to execute the include. I am using Win7 btw. C0d3 is P0etry( ͡° ͜ʖ ͡°)
Kovacic Posted January 21, 2013 Posted January 21, 2013 Nevermind, I have the latest autoit, I downloaded the wrong version of the script. Too much of a hurry. C0d3 is P0etry( ͡° ͜ʖ ͡°)
ModemJunki Posted April 23, 2013 Posted April 23, 2013 Hi, I was messing around with this in Win7 x64 and I found that _WinAPI_GetVolumeInformation seems not to be working? #include <WinAPIEx.au3> $s_label = _WinAPI_GetVolumeInformation("C:\") ConsoleWrite("Label = " & $s_label & @CRLF) I do know one can use DriveGetLabel, this works. #include <WinAPIEx.au3> $s_label = DriveGetLabel("C:\") ConsoleWrite("Label = " & $s_label & @CRLF) Any idea why? Is it just me? Always carry a towel.
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