lee321987 3 Posted April 2 (edited) Hello To reproduce the bug: open Abbreviation Manager (Menu > Tools > SciTe Config > Other Tools > Run Abbrev Manager). In the text box at top-left, enter your new abbreviation name and click button "Create". In the editor that opens, if you put a pipe character in your code (which you need there to place the cursor), then it messes up how the entry goes into this file: %LOCALAPPDATA%\AutoIt v3\SciTE\au3UserAbbrev.properties it seems to split the entry (at the pipe) into two lines so what should be: mb1=MsgBox(1, '', '|') ends up as ') mb1=MsgBox(1, '', ' The second file is: %LOCALAPPDATA%\AutoIt v3\SciTE\au3.keywords.user.abbreviations.properties I'm can't seem to reproduce it, but I am pretty sure that at some point while experimenting with this, this file ended up blank (so none of my abbreviations worked). My current workaround is to write the code (with no pipe char), click the "Add" button (closes the editor), then click the "Edit" button, and put the pipe in. Edited April 2 by lee321987 clean up Share this post Link to post Share on other sites
Nine 342 Posted April 2 Ya I got the same, you just need to edit your first abbrev. Add the missing chars, save. Working now ! Hide Nine's signature Hide all signatures No signature so far... Share this post Link to post Share on other sites
Melba23 3,090 Posted April 2 lee321987, Thanks for the report - looking into it. M23 Hide Melba23's signature Hide all signatures 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 Share this post Link to post Share on other sites
Melba23 3,090 Posted April 5 Hi, Found the problem - _ArrayAdd splits the input on the "|" as it thinks it is a delimiter. An easy fix - just change line #552 in your "AutoIt3 Folder\SciTE\SciTEConfig\AbbrevMan.au3"to read: _ArrayAdd($aUser_Abbrev, $sAbbrev_Name & "=" & $sAbbr, Default, Default, Default, $ARRAYFILL_FORCE_SINGLEITEM) That bug has been sitting there waiting to happen for a long time (I since I rewrote the Array library in 2014, you can read all about it in this thread) - obviously very few people ever use the Abbreviation Manager to add abbreviations with the cursor set character! M23 1 Nine reacted to this Hide Melba23's signature Hide all signatures 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 Share this post Link to post Share on other sites
Nine 342 Posted April 5 @Melba23 Changed the line, but didn't solve the bug. Do I need to recompile something ? Hide Nine's signature Hide all signatures No signature so far... Share this post Link to post Share on other sites
lee321987 3 Posted April 7 @Melba23 Thanks it worked! @Nine All I did was change line #552 of this file: C:\Program Files (x86)\AutoIt3\SciTE\SciTEConfig\AbbrevMan.au3 1 Nine reacted to this Share this post Link to post Share on other sites
Nine 342 Posted April 7 (edited) 27 minutes ago, lee321987 said: @Melba23 Thanks it worked! @Nine All I did was change line #552 of this file: C:\Program Files (x86)\AutoIt3\SciTE\SciTEConfig\AbbrevMan.au3 Nice going, sadly it doesn't work for me NVM, I forgot I didn't installed the latest version of Scite. I had downloaded it but never installed it. Sometimes, I can kick myself. Now it is working fine...Thanks to you Lee. Edited April 7 by Nine Hide Nine's signature Hide all signatures No signature so far... Share this post Link to post Share on other sites