Moderators Melba23 Posted July 11, 2013 Moderators Share Posted July 11, 2013 (edited) MyEarth, Bad bad example Melba lolDoes it work? YesDoes it show the syntax? YesWas it part of a post to help people understand some of the new features? YesDidi it spark interest in the operator? YesSounds like a result to me. If trancexx wants to provide better examples for the features she introduced then she has only to post them.M23Edit: Removed unpleasant comments and apologised to the target. Edited July 12, 2013 by Melba23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
trancexx Posted July 11, 2013 Share Posted July 11, 2013 (edited) How am I supposed to know who wrote the example? Does it matter who wrote it? I had to look up for the meaning of expression "to cast aspersions". Hm, I'm not sure how exactly did I deserve the comments I got from Melba23. Once again I've been accused for doing things I didn't even thought of. Melba23, if you have something personal against me then please deal with that privately. PM me or whatever, say what you want to say and then leave me alone. Edited July 11, 2013 by trancexx ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Mat Posted July 11, 2013 Share Posted July 11, 2013 Does it work? YesDoes it show the syntax? YesWas it part of a post to help people understand some of the new features? YesDid it spark interest in the operator? YesSorry to take a contrary view, but you would never actually write code like that, so I wouldn't want it in the helpfile.TranceXX has already given an example where the operator actually provides new functionality rather than just a new syntax, and others have posted better examples. AutoIt Project Listing Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 11, 2013 Moderators Share Posted July 11, 2013 Mat,It was not in the Help file - it was in a post from a self-avowed hobbyist poster offering some assitance to the community on how the syntax for the new features actually work, as explained in the very lines you quoted. Anyway, as I have now learnt how poorly my attempt was regarded by others, I will not bother in the future and leave it to those who consider themselves better coders. If they can be bothered to do it, of course. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Mat Posted July 11, 2013 Share Posted July 11, 2013 It was not in the Help file - it was in a post from a self-avowed hobbyist poster offering some assitance to the community on how the syntax for the new features actually work, as explained in the very lines you quoted. Anyway, as I have now learnt how poorly my attempt was regarded by others, I will not bother in the future and leave it to those who consider themselves better coders. If they can be bothered to do it, of course. I didn't say it wasn't useful, I just said it was a bad example Unfortunately you picked the one feature that is most likely to be abused in the future. That's probably why the users who have seen it in other languages were so quick to point that out to you. AutoIt Project Listing Link to comment Share on other sites More sharing options...
MyEarth Posted July 11, 2013 Author Share Posted July 11, 2013 Come'on guys, mine was only a gag / joke based on the "terrible terrible example", don't take it so seriusly and please continue with the constructive discourse. I can only learn from you because i can't teach nothing. Thanks czardas 1 Link to comment Share on other sites More sharing options...
Blue_Drache Posted July 11, 2013 Share Posted July 11, 2013 I prefer human readable code. Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
James Posted July 11, 2013 Share Posted July 11, 2013 I prefer human readable code. Better learn Arabic then. Apparently that's the most readable language? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
czardas Posted July 11, 2013 Share Posted July 11, 2013 (edited) Better learn Arabic then. Apparently that's the most readable language? I thought they had no vowels in written Arabic. I think that's one of the major problems in International relations: things often get lost in translation. Ths sntnce hs n vwls. I think what the world really needs is a Babel fish. Edited July 11, 2013 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
Blue_Drache Posted July 11, 2013 Share Posted July 11, 2013 Better learn Arabic then. Apparently that's the most readable language? Says who? Not me. From what I can tell, Arabic script looks like a drunk chicken walked through the inkpot. czardas 1 Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
water Posted July 11, 2013 Share Posted July 11, 2013 I don't share this opinion. Arabic is a beautiful and very ornamentic script. Have you ever been to one of the arabic countries or south of spain? czardas 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
czardas Posted July 12, 2013 Share Posted July 12, 2013 I don't share this opinion. Arabic is a beautiful and very ornamentic script. Have you ever been to one of the arabic countries or south of spain? Blue_Drache's wording made me laugh. Andalucia is like a second home to me. operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
Ascend4nt Posted July 12, 2013 Share Posted July 12, 2013 $ValueOfThisTopic = ($bMostlyArguing Or $bDiscussingArabic) ? -1 : 1 in the negatives i'm afraid... On a side note, C, C++ and D allow the result to be used as an LValue so that you can conditionally modify/assign values to different variables: (which ? x : y) += 5 Mat 1 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...
James Posted July 12, 2013 Share Posted July 12, 2013 On a side note, C, C++ and D allow the result to be used as an LValue so that you can conditionally modify/assign values to different variables: (which ? x : y) += 5 Which is what AutoIt should do, I believe it doesn't at the moment. The ternary I put into Disk Manager was returning true, not the output of the ternary concatenated with a string I appended. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Richard Robertson Posted July 12, 2013 Share Posted July 12, 2013 Good Code <----------------------------------------------------------------------------------------> Fun Code Readable, Understandable, Maintainable, Self-Explanatory, Idiomatic, Efficient, Optimized, Elegant, Hackvalue Also, AutoIt doesn't support ternary left hand values because assignment is not an equation operator. Link to comment Share on other sites More sharing options...
Kip Posted July 12, 2013 Share Posted July 12, 2013 On a side note, C, C++ and D allow the result to be used as an LValue so that you can conditionally modify/assign values to different variables: (which ? x : y) += 5 I have never, ever, felt like I needed that kind of functionality, though. MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
James Posted July 12, 2013 Share Posted July 12, 2013 I have never, ever, felt like I needed that kind of functionality, though. That's not to mean that others haven't. We seem to have a lot of self-minded developers here... Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
guinness Posted July 12, 2013 Share Posted July 12, 2013 Just because you don't feel you will use it doesn't means others will. Try to look beyond your limitations as a developer. 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...
Ascend4nt Posted July 12, 2013 Share Posted July 12, 2013 Which is what AutoIt should do, I believe it doesn't at the moment. The ternary I put into Disk Manager was returning true, not the output of the ternary concatenated with a string I appended. Referring to >this post: $Export_File = (StringRight(StringLower($Export_File), 4) == ".dma") ? $Export_File : $Export_File & ".dma" How do you suppose that is returning true? I suspect you aren't fully grasping how the ternary operator, or AutoIt's interpreter, works. The condition is tested, if its TRUE then what comes between '? .. :' is evaluated, otherwise what follows ':' is evaluated. After evaluation, if there is an assignment on the left hand side of the ternary expression, the result of the evaluated expression is then moved into that . Optimizing compilers (which AutoIt isn't) could possibly fix that flawed code by doing a no-op or an append, but its better to fix the problem where it starts - at the programmer level. 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...
Kip Posted July 12, 2013 Share Posted July 12, 2013 That's not to mean that others haven't. We seem to have a lot of self-minded developers here... I'm not saying the functionality isn't useful for anybody. I'm just saying I, myself, have never used it. MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. 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