AZJIO Posted July 12, 2012 Share Posted July 12, 2012 (edited) _GUICtrlListView_GetTextBkColor_GUICtrlListView_GetTextColor_GUICtrlListView_SetBkColor_GUICtrlListView_SetTextBkColor_GUICtrlListView_SetTextColorHere typo; Show clors; Show colorsDownload the source files yourself, edit accordingly and then re-upload to me please. Because some of the examples appear to be correct.Example_Fixed.7z_GUICtrlListView_DeleteColumnColumn zero of the list-view control cannot be deleted.If you must delete column zero, insert a zero length dummycolumn zero, and delete column one and abovecolumn is removed without any problems_GUICtrlListView_SetItemTextIf $iSubItem = -1 row is setdoes not work_GUICtrlListView_AddColumn($hListView, "Column 1", 100)I replaced in some instances up to 120 (140) to fit the text.GUIStyles.htm - jump to section Edited July 12, 2012 by AZJIO My other projects or all Link to comment Share on other sites More sharing options...
guinness Posted July 12, 2012 Author Share Posted July 12, 2012 Thanks AZJIO, I've updated the examples accordingly. 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 Link to comment Share on other sites More sharing options...
guinness Posted July 12, 2012 Author Share Posted July 12, 2012 $tagWINDOWPOS $SWP_ NOOWNERZORDER - contains a superfluous spaceDone. _GUICtrlStatusBar_GetHeight Retrieves the height of a partDone. _GUICtrIStatusBar_Create.au3 _GUICtrITab_Create.au3 _GUICtrITreeView_CIickltem.au3 _GUICtrITreeView_Create.au3 _GUICtrITreeView_GetEditControI.au3 _GUIImageList_Destroylcon.au3 _GUIImageList_Getlcon.au3 Case $NM_RDBLCLK ; The user has clicked the right mouse button within the control double-clickedDone. _GUICtrlStatusBar_Create MemoWrite("StatusBar Created with:" & @CRLF & _ @TAB & "only Handle," & @CRLF & _ @TAB & "part width number" & @CRLF & _ @TAB & "part text array of 3 elements" & @CRLF)not shown in the exampleDone. _GUICtrlStatusBar_SetBkColor StatusBar controls cannot be painted if the "Windows XP style" is used.Done. _GUICtrlStatusBar_GetUnicodeFormat _GUICtrlStatusBar_SetUnicodeFormat($hStatus, False)Done. _GUICtrlStatusBar_SetBkColor _GUICtrlStatusBar_SetUnicodeFormat _GUICtrlStatusBar_GetUnicodeFormat _GUICtrlStatusBar_SetMinHeight GUICreate("(Example 1)Done. GUIStyles.htm Add $PBS_MARQUEE (Progress Bar), $LVS_EX_INFOTIP (ListView)Done. _GUICtrlListView_GetSelectionMark _GUICtrlListView_SetSelectionMark ; Select multiple items ??????? _GUICtrlListView_SetSelectionMark($hListView, 1)Done. _GUICtrlStatusBar_SetIcon If the control is in simple mode, this field is ignored ignored ??? -1 _GUICtrlStatusBar_GetIcon If this parameter is -1, the status bar is assumed to be a Simple Mode status bar. If "Simple Mode" then -1 _GUICtrlStatusBar_GetRectEx If the control is in simple mode this field is ignored and the rectangle of the status bar is returned ignored ??? 0Care to elaborate please? 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 Link to comment Share on other sites More sharing options...
guinness Posted July 12, 2012 Author Share Posted July 12, 2012 _GUIImageList_ReplaceIcon AddIcon($hImage, $AutoItDir & "Iconsfiletype1.ico") AddIcon($hImage, $AutoItDir & "Iconsfiletype2.ico") AddIcon($hImage, $AutoItDir & "Iconsfiletype3.ico") filetype1.ico, filetype2.ico, filetype3.ico, files not found Fixed. 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 Link to comment Share on other sites More sharing options...
AZJIO Posted July 12, 2012 Share Posted July 12, 2012 (edited) Care to elaborate please?#include <GuiStatusBar.au3> $hGUI = GUICreate("Set Icon", 400, 300) $hStatus = _GUICtrlStatusBar_Create($hGUI, -1, "Part 1") GUISetState() _GUICtrlStatusBar_SetIcon($hStatus, 0, 23, "shell32.dll") MsgBox(0, 'Yes?', "0x" & Hex(_GUICtrlStatusBar_GetIcon($hStatus, 0))) $tRect = _GUICtrlStatusBar_GetRectEx($hStatus, 0) MsgBox(0, 'Сообщение', DllStructGetData($tRect, "Left") & @CRLF & _ DllStructGetData($tRect, "Top") & @CRLF & _ DllStructGetData($tRect, "Right") & @CRLF & _ DllStructGetData($tRect, "Bottom")) Do Until GUIGetMsg() = -3The second parameter in the function SetIcon not ignored, but has a certain value. If you change it, the icon is not displayed. Similarly for GetRectEx. Edited July 12, 2012 by AZJIO My other projects or all Link to comment Share on other sites More sharing options...
guinness Posted July 12, 2012 Author Share Posted July 12, 2012 OK thanks. I will have a look. If anyone has a better example for _FTP_ProgressDownload and _FTP_ProgressUpload could you please upload. 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 Link to comment Share on other sites More sharing options...
AZJIO Posted July 15, 2012 Share Posted July 15, 2012 (edited) Frequently Asked Questions (FAQ)Why from 5 to 16 is made as references?<style>li{padding:2px;}</style> --------- <ol> <li><a href="#1">Why doesn't my old AutoIt v2.64 script run in v3?</a></li> <li><a href="#2">Isn't v3 much more difficult than previous versions?</a></li> <li><a href="#3">How can I convert my v2.64 scripts to v3?</a></li> <li><a href="#4">Where is the "goto" command?</a></li> <li><a href="#5">How can I run a DOS program from within AutoIt?</a></li> <li><a href="#6">Why can I only use Run() to execute .exe and .com files? What about .msi / .txt and others?</a></li> <li><a href="#7">Why do I get errors when I try and use double quotes (") ?</a></li> <li><a href="#8">What do the window "title" and "text" parameters mean?</a></li> <li><a href="#9">Why can't I print a variable using "My var is $variable"?</a></li> <li><a href="#10">When I use Send() to send a variable odd things happen?</a></li> <li><a href="#11">What is the difference between the return value and @error?</a></li> <li><a href="#12">How can I exit my script with a hot-key?</a></li> <li><a href="#13">How can I use a custom icon when compiling my scripts?</a></li> <li><a href="#14">How can I make sure only one copy of my script is run?</a></li> <li><a href="#15">What are the current technical limits of AutoIt v3?</a></li> <li><a href="#16">I get a missing picture symbol in the Help file under the Examples.</a></li> </ol>Example< p> & nbsp ; < /p> changed to < br> Edited July 15, 2012 by AZJIO My other projects or all Link to comment Share on other sites More sharing options...
guinness Posted July 15, 2012 Author Share Posted July 15, 2012 (edited) Frequently Asked Questions (FAQ)Why from 5 to 16 is made as references?Done, Edited July 15, 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 Link to comment Share on other sites More sharing options...
JohnQSmith Posted July 17, 2012 Share Posted July 17, 2012 (edited) How about adding a list of available hashes to _Crypt_HashData and _Crypt_HashFile even though they are shown in the example code?$CALG_MD2$CALG_MD4$CALG_MD5$CALG_SHA1Edit: Removed encryption algorithms. Edited July 17, 2012 by JohnQSmith Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes". Link to comment Share on other sites More sharing options...
guinness Posted July 17, 2012 Author Share Posted July 17, 2012 (edited) How about adding a list of available hashes to _Crypt_HashData and _Crypt_HashFile even though they are shown in the example code?$CALG_MD2$CALG_MD4$CALG_MD5$CALG_SHA1Edit: Removed encryption algorithms.Where to be precise? In the remarks for the respective functions? Edited July 17, 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 Link to comment Share on other sites More sharing options...
JohnQSmith Posted July 18, 2012 Share Posted July 18, 2012 (edited) Where to be precise? I'd say in the Parameters section, like the "flag" parameter for DirGetSize. Also, while clicking around the help file looking for an example, I noticed that the way the flag parameter is listed in ControlSend is different from other parameter listings; using "flag = x,..." instead of just "x = ..." as in many other functions. Consistency would be nice. I'll see if I can find others that are also inconsistent. Edit: While clicking through more functions, I see other differences. Is there a preferred way of listing the parameter values? So far I've seen...X descriptionX - descriptionX = descriptionflag = X, description[X] - description[X] descriptionI think the "X = description" is the easiest to read and interpret. Edited July 18, 2012 by JohnQSmith Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes". Link to comment Share on other sites More sharing options...
AZJIO Posted July 20, 2012 Share Posted July 20, 2012 (edited) In the examples of "GUI" dominant "Select ... Case ... EndSelect", although a more optimal is the "Switch"While 1 Switch GUIGetMsg() Case $iButton GUICtrlSetData($iStatusBar, 'Done') Case $GUI_EVENT_CLOSE Exit EndSwitch WEndSimilarly, in folder "AutoItExamplesGUIAdvanced"FAQsection for the techinical limits of AutoIt3 Edited July 20, 2012 by AZJIO My other projects or all Link to comment Share on other sites More sharing options...
GEOSoft Posted July 20, 2012 Share Posted July 20, 2012 Since it's primarily a beginners help file then it's probably a good idea to use a mixture of Select and Switch examples so they can get used to both. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
trancexx Posted July 20, 2012 Share Posted July 20, 2012 Either of those two should be used when it's more correct, not for other reasons. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Valik Posted July 20, 2012 Share Posted July 20, 2012 Either of those two should be used when it's more correct, not for other reasons.Following on that, in almost all cases Switch is going to be the correct choice. In theory there are situations out there where Select is better but Switch is more consistent with other languages with the same feature.So yeah, why exactly is -3 hard coded in that example? We created symbolic constants so magic numbers wouldn't be used in scripts... and then our own examples use the magic numbers? Fail. Link to comment Share on other sites More sharing options...
AZJIO Posted July 20, 2012 Share Posted July 20, 2012 (edited) magic numbers AutoItExamplesGUIAdvancedtreeview.au3 Case $msg = -3 Or $msg = -1 Or $msg = $cancelbutton AutoItExamplesGUIAdvanceddice.au3 $die = GUICtrlCreateLabel("", 185, 25, 70, 20, 0x1000) AutoItExamplesGUIAdvancedencrypt.au3 $InputPass = GUICtrlCreateInput('', 5, 360, 100, 20, 0x21) ; Creates the password box with blured/centered input ;~~ $InputLevel = GUICtrlCreateInput(1, 110, 360, 50, 20, 0x2001) CLSID List Network Computers "::{1f4de370-d627-11d1-ba4f-00a0c91eedba}" >>> Computer search results folder List taken from Registry Guide for Windows at WinGuides Network - the link directs to a page that does not contain a list of. Whether the reference is necessary? Information on the Internet a lot. http://www.pctools.com/guides/registry/detail/61/ Example: FileSelectFolder ("Choose a folder.", "::{00000000-1080-F9E5-6311-4162E05A6BEE}", 1) This folder is not in the list Example OSLangCodes.htm #include <Array.au3> $sText = FileRead(@ScriptDir&'Culture.xml') ; http://cartotheque.googlecode.com/svn-history/r29/trunk/Schemas/Dic/Culture.xml $aText=StringRegExp($sText, '(?s)<Language Name(.+?<Code Source="NLS" Encoding="Hex">[[:xdigit:]]+?</Code>)', 3) $err = '' $kol = 0 $kolerr = 0 $htm = '' Global $A4D[300][4] For $i = 0 To UBound($aText)-1 $tmp=StringRegExp($aText[$i], '(?s)<Label xml:lang="en">([^rn]+?))</Label>.+?<Code Source="IETF">(.+?)</Code>.+?<Code Source="NLS" Encoding="Hex">([[:xdigit:]]+?)</Code>', 3) If @error And Not UBound($tmp)=3 Then $err &= $aText[$i] &@CRLF &@CRLF&@CRLF &@CRLF&@CRLF &@CRLF $kolerr +=1 Else $kol +=1 $A4D[$kol][0] = StringLower($tmp[2]) $A4D[$kol][1] = Dec($tmp[2]) $A4D[$kol][2] = $tmp[1] $A4D[$kol][3] = $tmp[0] EndIf Next If $kolerr Then MsgBox(0, $kolerr, $err) ReDim $A4D[$kol+1][4] $A4D[0][0] = $kol _ArraySort($A4D, 0, 1) _ArrayDisplay($A4D, 'Array') $htm = '' For $i = 1 To $A4D[0][0] $htm &= '<tr><td>'&$A4D[$i][0]&'</td><td>'&$A4D[$i][1]&'</td><td>'&$A4D[$i][2]&'</td><td>'&$A4D[$i][3]&'</td><td>' &@CRLF Next ClipPut($htm) Example expandcollapse popupMsgBox(0, "Your OS Language:", _Language()) Func _Language() Switch @OSLang Case "0413", "0813" Return "Dutch" Case "0409", "0809", "0c09", "1009", "1409", "1809", "1c09", "2009", "2409", "2809", "2c09", "3009", "3409" Return "English" Case "040c", "080c", "0c0c", "100c", "140c", "180c" Return "French" Case "0407", "0807", "0c07", "1007", "1407" Return "German" Case "0410", "0810" Return "Italian" Case "0414", "0814" Return "Norwegian" Case "0415" Return "Polish" Case "0416", "0816" Return "Portuguese" Case "040a", "080a", "0c0a", "100a", "140a", "180a", "1c0a", "200a", "240a", "280a", "2c0a", "300a", "340a", "380a", "3c0a", "400a", "440a", "480a", "4c0a", "500a" Return "Spanish" Case "041d", "081d" Return "Swedish" Case Else Return "Other (can't determine with @OSLang directly)" EndSwitch EndFunc Edited July 22, 2012 by AZJIO My other projects or all Link to comment Share on other sites More sharing options...
BrewManNH Posted July 23, 2012 Share Posted July 23, 2012 Not sure how you'd word this, but there's an issue with the various internal Filexx functions, such as FileExists, where these functions will not take a filename and path that is enclosed in quotes. I believe this should be mentioned somewhere in the documentation to save a lot of repeat questions when someone tries to send the function a string with quotes. For example, a value read from the registry often has quotes around the string returned, so if you do a FileExists on the returned value it will fail because of the quotes. This works. $string = "C:\Windows" If FileExists($string) then MsgBox(64, "", $string & " exists") This does not, because of the quotes around the path. $string = '"C:\Windows"' If FileExists($string) then MsgBox(64, "", $string & " exists") If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
Richard Robertson Posted July 23, 2012 Share Posted July 23, 2012 Common sense dictates you don't send quotes because you are only supposed to be sending a filename and " is an invalid file character. Link to comment Share on other sites More sharing options...
BrewManNH Posted July 23, 2012 Share Posted July 23, 2012 Common sense isn't so common, it pops up occasionally as a topic because it's not common sense that a quoted string isn't a valid path. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
AZJIO Posted July 27, 2012 Share Posted July 27, 2012 (edited) _GUICtrlStatusBar_SetText($hWnd, $sText = "", $iPart = 0, $iUFlag = 0) _GUICtrlStatusBar_SetSimple($hWnd, $fSimple = True)$hWnd[, $sText = ""[, $iPart = 0[, $iUFlag = 0]]]_WinAPI_CreateSolidBrush_WinAPI_GetWindowDC_WinAPI_FrameRectExample#include <GuiConstantsEx.au3> #include <WinAPI.au3> Opt('MustDeclareVars', 1) _Main() Func _Main() Local $hGUI, $hBrush, $hDC Local $hBrush, $hDC, $hGUI, $ptrRect, $tRect $hGUI = GUICreate("WinAPI", 400, 300) $hDC = _WinAPI_GetWindowDC($hGUI) GUISetState() $hBrush = _WinAPI_CreateSolidBrush(0x0000FF) $tRect = DllStructCreate($tagRECT) DllStructSetData($tRect, "Left", 20) DllStructSetData($tRect, "Top", 50) DllStructSetData($tRect, "Right", 200) DllStructSetData($tRect, "Bottom", 200) $ptrRect = DllStructGetPtr($tRect) _WinAPI_FrameRect($hDC, $ptrRect, $hBrush) Do Until GUIGetMsg() = $GUI_EVENT_CLOSE _WinAPI_DeleteObject($hBrush) _WinAPI_ReleaseDC($hGUI, $hDC) EndFunc_WinAPI_MAKELANGIDExample#include <Constants.au3> #include <WinAPI.au3> $LangID = _WinAPI_MAKELANGID($LANG_ENGLISH, $SUBLANG_DEFAULT) MsgBox(4096, '', Hex(Int($LangID), 4) & @LF & $LangID)_WinAPI_PtInRectExample#include <WinAPI.au3> $tRect = DllStructCreate($tagRECT) DllStructSetData($tRect, "Left", 20) DllStructSetData($tRect, "Top", 50) DllStructSetData($tRect, "Right", 200) DllStructSetData($tRect, "Bottom", 200) $tPoint = DllStructCreate($tagPOINT) DllStructSetData($tPoint, "X", 120) DllStructSetData($tPoint, "Y", 120) MsgBox(4096, 'PtInRect', _WinAPI_PtInRect($tRect, $tPoint))_WinAPI_FindExecutableExample: @ScriptName -> @ScriptFullPath#include <WinAPI.au3> Local $sPath = FileOpenDialog('', @MyDocumentsDir, "All (*.*)", 1 + 2) If Not @error Then MsgBox(4096, "Find Executable", "file:" & @LF & $sPath & @LF & @LF & _ "Executable:" & @LF & _WinAPI_FindExecutable($sPath)) EndIf_WinAPI_IsWindowSuccess: Handle is a windowFailure: Handle is not a windowAnd where is the "True", "False"?_WinAPI_GetCurrentProcesspseudo Edited July 31, 2012 by AZJIO My other projects or all Link to comment Share on other sites More sharing options...
Recommended Posts