Moderators Melba23 Posted February 11, 2021 Moderators Share Posted February 11, 2021 wyf, When you reply in future, please use the "Reply to this topic" button at the top of the thread or the "Reply to this topic" editor at the bottom rather than the "Quote" button - we know what we wrote and it just pads the thread unnecessarily. Thanks in advance for your cooperation. 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...
Developers Jos Posted February 11, 2021 Author Developers Share Posted February 11, 2021 3 hours ago, wyf said: Sorry, I don't understand how your test method operating. Comment a few lines in the SciTEStartup.lua file like this: -- Load all the Lua files. LoadLuaFile("Class.lua") -- Always load first. LoadLuaFile("Common.lua") -- Always load second. --LoadLuaFile("AutoItPixmap.lua") --LoadLuaFile("AutoHScroll.lua") --LoadLuaFile("AutoItAutoComplete.lua") --LoadLuaFile("LUAAutoComplete.lua") LoadLuaFile("AutoItIndentFix.lua") LoadLuaFile("EdgeMode.lua") LoadLuaFile("SmartAutoCompleteHide.lua") LoadLuaFile("Tools.lua") LoadLuaFile("AutoItTools.lua") LoadLuaFile("AutoItGotoDefinition.lua") LoadLuaFile("SciTE_extras.lua") if os.getenv("SCITE_USERHOME") ~= nil then f = io.open(os.getenv("SCITE_USERHOME") .. "\\PersonalTools.lua") if f ~= nil then LoadLuaFile("PersonalTools.lua",os.getenv ("SCITE_USERHOME") .. "\\") f:close() end else f = io.open(os.getenv("USERPROFILE") .. "\\PersonalTools.lua") if f ~= nil then LoadLuaFile("PersonalTools.lua",os.getenv ("USERPROFILE") .. "\\") f:close() end end and try if it still goes wrong. When it does add the next 4: -- Load all the Lua files. LoadLuaFile("Class.lua") -- Always load first. LoadLuaFile("Common.lua") -- Always load second. --LoadLuaFile("AutoItPixmap.lua") --LoadLuaFile("AutoHScroll.lua") --LoadLuaFile("AutoItAutoComplete.lua") --LoadLuaFile("LUAAutoComplete.lua") --LoadLuaFile("AutoItIndentFix.lua") --LoadLuaFile("EdgeMode.lua") --LoadLuaFile("SmartAutoCompleteHide.lua") --LoadLuaFile("Tools.lua") LoadLuaFile("AutoItTools.lua") LoadLuaFile("AutoItGotoDefinition.lua") LoadLuaFile("SciTE_extras.lua") if os.getenv("SCITE_USERHOME") ~= nil then f = io.open(os.getenv("SCITE_USERHOME") .. "\\PersonalTools.lua") if f ~= nil then LoadLuaFile("PersonalTools.lua",os.getenv ("SCITE_USERHOME") .. "\\") f:close() end else f = io.open(os.getenv("USERPROFILE") .. "\\PersonalTools.lua") if f ~= nil then LoadLuaFile("PersonalTools.lua",os.getenv ("USERPROFILE") .. "\\") f:close() end end Continue until all but the first 2 lines with LoadLuaFile() lines are commented. When any comment block solves the issue then uncomment one by one until the issue returns. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
wyf Posted February 11, 2021 Share Posted February 11, 2021 Restore EventClass: BeginEvents() Comment : -- LoadLuaFile("AutoItIndentFix.lua") Link to comment Share on other sites More sharing options...
Developers Jos Posted February 11, 2021 Author Developers Share Posted February 11, 2021 (edited) Ok, so next please change line 17 in that file to: self.Debug = true ... and try again and tell me what the debug output is in the console. My guess is some sort of endless loop. This in my output for an Enter in an empty file: Debug: *** Enter detected => Start Indent checking Debug: +### processing line:0 Curr_firstword:: Next_firstword::: Next2_firstword:: Debug: Line: 0 ------------------------------------------------------- Debug: Curr_foldLvl:1024 Curr_lev:1024 Curr_IsFoldHeader :false Parent_line:-1 Parent_foldvl: -1 fold_firstword: fold_lastword: Debug: Prev_foldLvl:1024 Prev_lev:1024 Prev_IsFoldHeader :false Prev_Parent_line:-1 Prev_Parent_foldLvl: -2 Debug: Next_foldLvl:1024 Next_lev:1024 Next_IsFoldHeader :false Next_Parent_line:-1 Next_Parent_foldLvl: 0 Edited February 11, 2021 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
wyf Posted February 11, 2021 Share Posted February 11, 2021 Does "so next please change line 17 in that file to:" mean "SciTEStartup.lua"? If it is, there is no message in the console. Link to comment Share on other sites More sharing options...
Developers Jos Posted February 11, 2021 Author Developers Share Posted February 11, 2021 In file AutoItIndentFix.lua SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
wyf Posted February 11, 2021 Share Posted February 11, 2021 The console still has no messages. Link to comment Share on other sites More sharing options...
Developers Jos Posted February 11, 2021 Author Developers Share Posted February 11, 2021 (edited) No messages but it is hanging? You did uncomment line ? LoadLuaFile("AutoItIndentFix.lua") Edited February 11, 2021 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
wyf Posted February 11, 2021 Share Posted February 11, 2021 No hanging, normal carriage return Link to comment Share on other sites More sharing options...
wyf Posted February 11, 2021 Share Posted February 11, 2021 (edited) No cancellation of LoadLuaFile("AutoItIndentFix.lua") If you want to uncomment, I will retest Edited February 11, 2021 by wyf Link to comment Share on other sites More sharing options...
Developers Jos Posted February 11, 2021 Author Developers Share Posted February 11, 2021 Sorry but I lost you now! You said that when you comment "--LoadLuaFile("AutoItIndentFix.lua")" the problem is gone. Doesn't the problem return when you uncomment that line? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
wyf Posted February 11, 2021 Share Posted February 11, 2021 (edited) Restore EventClass:BeginEvents() annotation Uncomment LoadLuaFile("AutoItIndentFix.lua") Change line 17 of AutoItIndentFix.lua to self.Debug = true -- self.VK_RETURN = 0x0D Blank script test carriage return is normal, No messages displayed on the console Edited February 11, 2021 by wyf Link to comment Share on other sites More sharing options...
Developers Jos Posted February 11, 2021 Author Developers Share Posted February 11, 2021 ...and also hanging? 6 minutes ago, wyf said: self.Debug = true -- self.VK_RETURN = 0x0D you mean?: self.VK_RETURN = 0x0D self.Debug = true SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
wyf Posted February 11, 2021 Share Posted February 11, 2021 (edited) No hanging ! Uncomment EventClass: BeginEvents() Uncomment LoadLuaFile("AutoItIndentFix.lua") Change line 17 of AutoItIndentFix.lua to: -------------------------------------------------------------------------------- function AutoItIndentFix:OnStartup() self.Debug = true -- self.Debug = false It is normal to test carriage return with an empty script, The console does not display any messages. Edited February 11, 2021 by wyf Link to comment Share on other sites More sharing options...
Developers Jos Posted February 11, 2021 Author Developers Share Posted February 11, 2021 That is not possible .... then your still have another change in "SciTEStartup.lua" as that debug statement should show the messages I posted! Make sure you go back to the status you have with the original installer ... and then check if you get the hang issue again and then do as I asked. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
wyf Posted February 11, 2021 Share Posted February 11, 2021 I will continue the test tomorrow, today I am closed! Link to comment Share on other sites More sharing options...
Developers Jos Posted February 11, 2021 Author Developers Share Posted February 11, 2021 Great ...thanks. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
wyf Posted February 12, 2021 Share Posted February 12, 2021 (edited) Completely uninstall the previously installed AutoIt3, Fresh install autoit-v3.3.14.5-setup.exe & SciTE4AutoIt3_V21.203.1500.1.exe, Do not do any localization conversion search after installation! Do not load the SciTEUser.properties file. Because the modification test has been done yesterday, after the new installation, the test: 1. Only modify AutoItIndentFix.lua: - self.VK_RETURN = 0x0D Comment line 17 self.Debug = true modify false To true Untitled empty script and carriage return are normal, Scite.exe does not appear to hang! No message appears on the console! 2. Comment - After LoadLuaFile("AutoItIndentFix.lua"): Untitled empty script and carriage return are normal, Scite.exe does not appear to hang! No messages appear on the console! And the code indentation format is normal. System environment Windows 10 Professional 20H2 x 86 Can you tell you the specific modification of the circular message on the console? Edited February 12, 2021 by wyf Link to comment Share on other sites More sharing options...
Developers Jos Posted February 12, 2021 Author Developers Share Posted February 12, 2021 4 hours ago, wyf said: 1. Only modify AutoItIndentFix.lua: - self.VK_RETURN = 0x0D Comment line 17 self.Debug = true modify false To true You Only need to change the line self.Debug = true and not change anything on line: self.VK_RETURN SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
wyf Posted February 12, 2021 Share Posted February 12, 2021 function AutoItIndentFix:OnStartup() self.Debug = true self.VK_RETURN = 0x0D self.Debug = false Cancel or not cancel the comment of LoadLuaFile("AutoItIndentFix.lua"), Test empty script, no hang, normal carriage return. Link to comment Share on other sites More sharing options...
Recommended Posts