Administrators Jon Posted July 24, 2013 Administrators Share Posted July 24, 2013 File Name: AutoIt v3.3.9.12 BetaFile Submitter: JonFile Submitted: 24 Jul 2013File Category: Beta3.3.9.12 (24th July, 2013) (Beta) AutoIt: - Added: @LocalAppDataDir for local AppData (@AppDataDir is the roaming location) - Fixed: 3rd time lucky changes for Windows XP RTM compatability. (Un)RegisterTypeLibForUser loaded dynamically. - Fixed: Regression in WinGetClassList() with missing line feeds. - Fixed: Better operator precedence handling for tenary operator. Aut2Exe: - Changed: Aut2Exe makes all resource changes (version info, manifest, etc) in a single pass. Should be quicker. UDFs: - Added: _FileListToArrayRec now accepts the Default keyword to use default parameters. - Changed: _ReplaceStringInFile() will only overwrite the file if instances of the replacement were found.Click here to download this file jaberwacky 1 Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Mat Posted July 24, 2013 Share Posted July 24, 2013 Ternary operator seems to be behaving as expected AutoIt Project Listing Link to comment Share on other sites More sharing options...
UEZ Posted July 24, 2013 Share Posted July 24, 2013 Br, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
jpm Posted July 24, 2013 Share Posted July 24, 2013 I just found a regression in ternary for $tagREBARBANDINFO #include <StructureConstants.au3> Local $tag = $tagREBARBANDINFO Which return nothing Perhaps _Max(),_Min() as I remeber they are using ternary too Cheers JP Link to comment Share on other sites More sharing options...
wraithdu Posted July 24, 2013 Share Posted July 24, 2013 (edited) That's a weird bug to do with string concatenation with a ternary. $test = "test : " & (1 > 2) ? "true" : "false" ConsoleWrite($test & @CRLF) ; ==> outputs 'true' $test = "test : " & ((1 > 2) ? "true" : "false") ConsoleWrite($test & @CRLF) ; ==> outputs 'test : false' Edited July 24, 2013 by wraithdu Link to comment Share on other sites More sharing options...
Mat Posted July 24, 2013 Share Posted July 24, 2013 (edited) It's because of the changes to precedence. ? has a lower precedence than & so it is parsed as the following: Local $test If "test : " & (1 > 2) Then $test = "true" Else $test = "false" EndIf Basically you now have to use this instead: $test = "test : " & (1 > 2 ? "true" : "false") Which is more readable, and means parenthesis are only needed when the operator appears inside other expressions. Edited July 24, 2013 by Mat AutoIt Project Listing Link to comment Share on other sites More sharing options...
jpm Posted July 24, 2013 Share Posted July 24, 2013 It's because of the changes to precedence. ? has a lower precedence than & so it is parsed as the following: Local $test If "test : " & (1 > 2) Then $test = "true" Else $test = "false" EndIf Basically you now have to use this instead: $test = "test : " & (1 > 2 ? "true" : "false") Which is more readable, and means parenthesis are only needed when the operator appears inside other expressions. Thanks I correct as you mention Link to comment Share on other sites More sharing options...
Administrators Jon Posted July 24, 2013 Author Administrators Share Posted July 24, 2013 To be honest, I think that using beta functions in the UDFs for the same beta isn't a great idea for keeping your sanity... Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Ascend4nt Posted July 25, 2013 Share Posted July 25, 2013 File Name: AutoIt v3.3.9.12 Beta ...- Fixed: 3rd time lucky changes for Windows XP RTM compatability. (Un)RegisterTypeLibForUser loaded dynamically. I can confirm that AutoIt3 works fine, as does Au3Info, Au3check, Aut2Exe, and the bundled version of SciTE. I've only run it against a few personal scripts but everything seems to work as expected. My contributions: Performance Counters in Windows - Measure CPU, Disk, Network etc Performance | Network Interface Info, Statistics, and Traffic | CPU Multi-Processor Usage w/o Performance Counters | Disk and Device Read/Write Statistics | Atom Table Functions | Process, Thread, & DLL Functions UDFs | Process CPU Usage Trackers | PE File Overlay Extraction | A3X Script Extract | File + Process Imports/Exports Information | Windows Desktop Dimmer Shade | Spotlight + Focus GUI - Highlight and Dim for Eyestrain Relief | CrossHairs (FullScreen) | Rubber-Band Boxes using GUI's (_GUIBox) | GUI Fun! | IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) | Magnifier (Vista+) Functions UDF | _DLLStructDisplay (Debug!) | _EnumChildWindows (controls etc) | _FileFindEx | _ClipGetHTML | _ClipPutHTML + ClipPutHyperlink | _FileGetShortcutEx | _FilePropertiesDialog | I/O Port Functions | File(s) Drag & Drop | _RunWithReducedPrivileges | _ShellExecuteWithReducedPrivileges | _WinAPI_GetSystemInfo | dotNETGetVersions | Drive(s) Power Status | _WinGetDesktopHandle | _StringParseParameters | Screensaver, Sleep, Desktop Lock Disable | Full-Screen Crash Recovery Wrappers/Modifications of others' contributions: _DOSWildcardsToPCRegEx (original code: RobSaunder's) | WinGetAltTabWinList (original: Authenticity) UDF's added support/programming to: _ExplorerWinGetSelectedItems | MIDIEx UDF (original code: eynstyne) (All personal code/wrappers centrally located at Ascend4nt's AutoIT Code) Link to comment Share on other sites More sharing options...
jaberwacky Posted July 25, 2013 Share Posted July 25, 2013 Should be quicker. Much quicker! Thanks! Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
saudumm Posted July 25, 2013 Share Posted July 25, 2013 (edited) Hello, I noticed that Aut2Exe "fails" when compiling from ScITE with the #pragma out directive. Here is my code from the File Test.au3: #pragma compile(out, Test123.exe) #pragma compile(FileVersion, 1.2.3.4) MsgBox(0,"","Test") This is the output when i hit ALT+F7 in ScITE: >Running:(3.3.9.12):C:\Program Files (x86)\AutoIt3\Beta\aut2exeaut2exe.exe /in "C:UsersusernameDesktopTest.au3" /out "C:UsersusernameAppDataLocalTemp~AU3axzzstv.exe" /nopack /comp 2 !>07:57:22 Aut2exe.exe ended errors because the target exe wasn't created, abandon build.rc:9999 >Exit code: 0 Time: 1.977 The Test123.exe is created successfully. Running Aut2Exe.exe and selecting the .au3 doesn't show any error. Compiling this code from ScITE shows no error, but it creates a Test.exe: #pragma compile(FileVersion, 1.2.3.4) MsgBox(0,"","Test") >Running:(3.3.9.12):C:\Program Files (x86)\AutoIt3\Beta\aut2exeaut2exe.exe /in "C:UsersusernameDesktopTest.au3" /out "C:UsersusernameAppDataLocalTemp~AU3aafpxbr.exe" /nopack /comp 2 +>08:08:51 Aut2exe.exe ended.rc:0 +>08:08:51 Created program:C:UsersusernameDesktopTest.exe >Exit code: 0 Time: 2.758 I noticed this since Beta 3.3.9.6. Edited July 25, 2013 by saudumm Link to comment Share on other sites More sharing options...
jpm Posted July 25, 2013 Share Posted July 25, 2013 To be honest, I think that using beta functions in the UDFs for the same beta isn't a great idea for keeping your sanity... Was the remark to me? The ternary usage in beta has been introduced first by Guinness after trancexx implementation Link to comment Share on other sites More sharing options...
guinness Posted July 25, 2013 Share Posted July 25, 2013 Was the remark to me?The ternary usage in beta has been introduced first by Guinness after trancexx implementationI only did a couple though. 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...
jpm Posted July 25, 2013 Share Posted July 25, 2013 I only did a couple though. I agree that the reason I say first ... Link to comment Share on other sites More sharing options...
Administrators Jon Posted July 25, 2013 Author Administrators Share Posted July 25, 2013 Was the remark to me? The ternary usage in beta has been introduced first by Guinness after trancexx implementation No, to anyone Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
jpm Posted July 25, 2013 Share Posted July 25, 2013 No, to anyone so what is the sense of post #8 Link to comment Share on other sites More sharing options...
Administrators Jon Posted July 25, 2013 Author Administrators Share Posted July 25, 2013 Do not use in-progress beta functions in the beta UDFs. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
guinness Posted July 25, 2013 Share Posted July 25, 2013 Do not use in-progress beta functions in the beta UDFs.Understood and noted. Sorry. 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...
Administrators Jon Posted July 25, 2013 Author Administrators Share Posted July 25, 2013 Understood and noted. Sorry. Nothing to be sorry about. You can use what you want but if I change the functionality or rip an entire feature out then it's going to break a lot of things. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
James Posted July 25, 2013 Share Posted July 25, 2013 Do not use in-progress beta functions in the beta UDFs. But aren't UDF's great examples of tests? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Recommended Posts