Developers Jos Posted September 19, 2023 Author Developers Share Posted September 19, 2023 You can use an Enter or Tab to select an proposed variable from the dropdown list, which is then inserted in the editor, but the Enter/Tab used isn't forwarded. With this option you can define what character you like to have added after the inserted variable name.so in this shown example , the Enter is added after you use Enter to select the variable from the drop-down. All clear? donnyh13 1 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...
donnyh13 Posted September 19, 2023 Share Posted September 19, 2023 (edited) Hi Jos, Thanks very much for your explanation. Just when you thought you got rid of me — I found a minor graphic glitch, Not sure If it's really important or not. When using multiple cursorsto type data in a commented section (minimum 3), I noticed sometimes the words stay black instead of turning green, until some time later at least. Strange thing is, when attempting to re-create the problem, I typed four commented lines (see below image). If I began creating cursors (by holding CTRL and clicking) from lines 1 to 4, the problem appears, but if I start from line 4 and go to line 1, the problem doesn't appear. If I click after the line and hit space, backspace, etc., the words turn to green as they should be. Edited September 19, 2023 by donnyh13 LibreOffice UDF ; Scite4AutoIt Spell-Checker Using LibreOffice Spoiler "Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions." Link to comment Share on other sites More sharing options...
Developers Jos Posted September 20, 2023 Author Developers Share Posted September 20, 2023 (edited) That explanation sounds like an au3lexer issue, but I am somewhat confused what you mean by to replicate it: 14 hours ago, donnyh13 said: If I began creating cursors (by holding CTRL and clicking) from lines 1 to 4 I have no idea what "creating cursors" means in this context. What exactly are you clicking on with Ctrl pressed? I only know the function of Ctrl+Click for folding. So could you give me some layman steps to perform to see this Lexer issue so I can debug it in VS++? Understand what you mean now and am able to replicate for debugging. Thanks! Edited September 20, 2023 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...
Developers Jos Posted September 20, 2023 Author Developers Share Posted September 20, 2023 (edited) 6 hours ago, Jos said: Understand what you mean now and am able to replicate for debugging. Surprisingly it was an issue caused by the LUA script which forced the update in the lexer, which is fixed in the current updated LUA files in the zip file. Just to be clear: At this moment the Dynamic AutoComplete doesn't support autocomplete for multiple words insertion like you are doing here with the Ctrl+Click. I might has a look at that but am not sure on its complexity yet. Edited September 20, 2023 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...
donnyh13 Posted September 20, 2023 Share Posted September 20, 2023 8 hours ago, Jos said: which is fixed in the current updated LUA files in the zip file Okay, great, glad you found it, and also figured out what I was trying to say. I didn't have a clue what that insertion method is called, I just happened across it by accident one day and found it handy from time to time. 8 hours ago, Jos said: Just to be clear: At this moment the Dynamic AutoComplete doesn't support autocomplete for multiple words insertion Ya, I kind of figured, it wasn't supported before either, just completes one line. I'm thinking it would be rather complex to implement, but who knows? not to mention it may not be worth while since I doubt many even use/know about writing on multiple lines? It's not every day you need to write multiple identical lines. LibreOffice UDF ; Scite4AutoIt Spell-Checker Using LibreOffice Spoiler "Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions." Link to comment Share on other sites More sharing options...
mLipok Posted September 20, 2023 Share Posted September 20, 2023 (edited) On 7/1/2022 at 4:30 PM, Jos said: Download SciTE_changes_Dynamic_Includes.zip, which contains the updated files for an standard installation. Is it only on my computer or is this link broken? Edited September 20, 2023 by mLipok Signature beginning:* Please remember: "AutoIt"..... * Wondering who uses AutoIt and what it can be used for ? * Forum Rules ** ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Code * for other useful stuff click the following button: Spoiler Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API * ErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 * My contribution to others projects or UDF based on others projects: * _sql.au3 UDF * POP3.au3 UDF * RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF * SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane * Useful links: * Forum Rules * Forum etiquette * Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * Wiki: * Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX IE Related: * How to use IE.au3 UDF with AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler * IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related: * How to get reference to PDF object embeded in IE * IE on Windows 11 * I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions * EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *I also encourage you to check awesome @trancexx code: * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuff * OnHungApp handler * Avoid "AutoIt Error" message box in unknown errors * HTML editor * winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/ "Homo sum; humani nil a me alienum puto" - Publius Terentius Afer"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming" , be and \\//_. Anticipating Errors : "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty." Signature last update: 2023-04-24 Link to comment Share on other sites More sharing options...
Danp2 Posted September 20, 2023 Share Posted September 20, 2023 It's just you. 😜 Seriously, try this link. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
donnyh13 Posted September 21, 2023 Share Posted September 21, 2023 Hi again Jos, This may be my imagination, but I'm noticing a "lagginess" on the AutoComplete drop down displaying actual text. (Just sitting there as a blank for milliseconds longer). I can press enter and the text is auto completed still, but the text isn't displayed in the drop down till longer — it seems? I reverted AutoItAutoComplete.lua to your last version and my imagination seems to not notice the lag, I place the new AutoItAutoComplete.lua file in and my imagination sees it again. I'll try it again another day and see if it's just some sort of slow down on my computer or not. LibreOffice UDF ; Scite4AutoIt Spell-Checker Using LibreOffice Spoiler "Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions." Link to comment Share on other sites More sharing options...
Developers Jos Posted September 21, 2023 Author Developers Share Posted September 21, 2023 (edited) 8 hours ago, donnyh13 said: This may be my imagination, but I'm noticing a "lagginess" on the AutoComplete drop down displaying actual text. The change I made will "re-lexer" the whole file so assume this is a bigger scriptfile? I could try changing that to only the lines displayed which should also fix the issue when you have multiple inserts going and not all being "Colored". Will have check to see if that works too. Edited September 21, 2023 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...
Developers Jos Posted September 21, 2023 Author Developers Share Posted September 21, 2023 (edited) 28 minutes ago, Jos said: Will have check to see if that works too. Change made in the current LUA scripts in SciTE_changes_Dynamic_Includes_LUA.zip. Curious to see if that makes any difference for you. Edited September 21, 2023 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...
Developers Jos Posted September 21, 2023 Author Developers Share Posted September 21, 2023 Updated the Beta installer & portable files with the latest Lua scripts and SciTE V 5.3.7 Scintilla:5.3.6 Lexilla:5.2.6. Also the SciTEx86 & SciTEX64 are updated with the latest version. mLipok, Melba23 and donnyh13 3 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...
donnyh13 Posted September 21, 2023 Share Posted September 21, 2023 8 hours ago, Jos said: so assume this is a bigger scriptfile Yes it is, ~ 7,500 lines, plus two others open, one which is 45,000 lines. 8 hours ago, Jos said: Curious to see if that makes any difference for you. I'll give it a shot, thanks for your prompt help and responses! And then I'll update to the new beta files too. LibreOffice UDF ; Scite4AutoIt Spell-Checker Using LibreOffice Spoiler "Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions." Link to comment Share on other sites More sharing options...
donnyh13 Posted September 21, 2023 Share Posted September 21, 2023 (edited) Okay @Jos, I have tried the new files and Beta too, The slower behaviour is still present, but I think it has improved. I further noticed the slow down becomes more pronounced after saving changes made in the file, compared to freshly opening and editing a file, and having never pressed save. I further noticed another thing, when hitting ENTER several times, before saving any changes in an open file, ever, it is instantly inserted, after saving, there are pauses for some milliseconds. (This, I think, has been present always, I've just noticed it now?) My computer isn't exactly the latest and greatest, this could be my own personal problem, if you aren't able to re-create these errors, and I may be just leading you on a wild goose chase? Probably helps you none, but I played with the AutoItAutoComplete.lua file, slowly adding your new changes into the Sept 19 version, and found that line 113 seems to be the cause of the slow AutoComplete window, changing this line (Line 113 in function AutoItAutoComplete:OnChar(c)) editor:Colourise(editor:PositionFromLine(editor.FirstVisibleLine), editor:PositionFromLine(editor.LineCount+1)) Back to: editor:Colourise(editor:PositionFromLine(curlinenr - 1), editor:PositionFromLine(curlinenr + 1)) the issue is remedied, but I'm guessing that pretty much undoes much of your fix? I still notice a minor slow down, even after this, but it is greatly improved after editing that line. This lagginess isn't intolerable, and like you pointed out, it is in a large file, so it should be expected. Just thought I should mention it when I first noticed it, in case it was useful. Everything looks great otherwise. By the way, my display issue that you helped me fix still exists in Scite 5.3.7. Weird! Edit** As an experiment, I monkeyed with a bit of stuff for that line, This seems to work okay, though is a bit "clumsy" ? editor:Colourise(editor:PositionFromLine(curlinenr - editor.LinesOnScreen), editor:PositionFromLine(curlinenr + editor.LinesOnScreen)) Also, I noticed this: editor.FirstVisibleLine Reports a line number several thousand previous to my current visible position. Seems odd for the name of it? Maybe I misunderstand its use. e.g., I am currently typing on line 5,207, it reports the first visible line is 2,454. Edit2** Something like this could also work, and fix the issue of multiple selections, although this still seems to be slower?? Hard to say, will have to try it more. if (editor.Selections > 1) then editor:Colourise(editor:PositionFromLine(editor.SelectionNCaret[0]), editor:PositionFromLine(editor.SelectionNCaret[editor.Selections -1])) else editor:Colourise(editor:PositionFromLine(curlinenr - 1), editor:PositionFromLine(curlinenr + 1)) end But instead of editor.SelectionNCaret[0], and editor.SelectionNCaret[editor.Selections -1], you would have to have a separate function to determine which selection is on the lowest numerical line # and which on the highest, and then set a variable in case the selections were created in a random order above and below the 0th selection and the last created selection. Such as: Selection #2 Selection #0 Selection #1 Just my thoughts in case they help any. Edited September 21, 2023 by donnyh13 LibreOffice UDF ; Scite4AutoIt Spell-Checker Using LibreOffice Spoiler "Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions." Link to comment Share on other sites More sharing options...
Developers Jos Posted September 22, 2023 Author Developers Share Posted September 22, 2023 Thanks for your debugging and will have a more detailed look tomorrow when i will have some time to debug. :-) donnyh13 1 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...
Developers Jos Posted September 22, 2023 Author Developers Share Posted September 22, 2023 (edited) 17 hours ago, donnyh13 said: Also, I noticed this: editor.FirstVisibleLine Reports a line number several thousand previous to my current visible position. Seems odd for the name of it? Maybe I misunderstand its use. e.g., I am currently typing on line 5,207, it reports the first visible line is 2,454. This is very strange unless an fold is active, but it should have the value of the linenumber-1 for the first visible line on the screen.(line1=0) This could explain why it becomes laggy for you in this specific script. Edited September 22, 2023 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...
donnyh13 Posted September 22, 2023 Share Posted September 22, 2023 50 minutes ago, Jos said: will have a more detailed look tomorrow Sounds good! 43 minutes ago, Jos said: This is very strange unless an fold is active Yes, you are correct, I tried it with all folds unfolded and it reports correctly now. I suppose that it must be the "correct" line number with the folds then. LibreOffice UDF ; Scite4AutoIt Spell-Checker Using LibreOffice Spoiler "Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions." Link to comment Share on other sites More sharing options...
Developers Jos Posted September 22, 2023 Author Developers Share Posted September 22, 2023 30 minutes ago, Jos said: This is very strange unless an fold is active, but it should have the value of the linenumber-1 for the first visible line on the screen.(line1=0) After rereading the SciTE/Scintilla API calls in the helpfile I see indeed that it will be a different line number than the Document linenumber. I will make some changes to the script to avoid doing the lexing of too many lines, which should help decrease the lag. mLipok, paw and donnyh13 2 1 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...
donnyh13 Posted September 22, 2023 Share Posted September 22, 2023 Actually, I just tried inserting this in the auto Complete (at line 113) editor:GotoLine(editor.FirstVisibleLine) And it takes me to the literal line wayyyyyyy before where I'm at... From line 7378 to line 825, (this is with folds active by the way.) I think you're right, this would probably be why it's laggy on these bigger scripts. LibreOffice UDF ; Scite4AutoIt Spell-Checker Using LibreOffice Spoiler "Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions." Link to comment Share on other sites More sharing options...
Developers Jos Posted September 22, 2023 Author Developers Share Posted September 22, 2023 correct. I need to use editor:DocLineFromVisible(line displayLine) to get the proper file record... more tomorrow. donnyh13 1 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...
Developers Jos Posted September 22, 2023 Author Developers Share Posted September 22, 2023 Just had a bit of time to play with this so made some changes in the lua scripts: Correctly determine first line in display Re-lexer first displayline up to the current word being typed to reduce the lagging (hopefully) When using multiple inserts (Ctrl+Click) the backspace will work on all inputs and they will now remain active. Give this version of lua scripts a spin available in SciTE_changes_Dynamic_Includes_LUA.zip. 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...
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