g0gcd Posted October 22 Posted October 22 Hi, Just been 'encouraged' to change to Windows 11. All seems well except for lags when saving scripts that I've been editing in SCITe and when running them under SCITe. I'm using AutoIT v3.3.18.0. My main project is about 20k lines long and has about 30 or so include files, but I wouldn't have called it a large file. After editing the core script (~1.1kb), I press save and there's no reaction from SCITe for 5 seconds, then the save goes through. As the script is saved before running, the same delay occurs when pressing F5 to run the script. Having observed this on my main development bed, I checked on another Windows 11 machine and see the same effect, I just hadn't noticed it before. I've done all of the Google tips - updated drivers, checked system files, minimised running processes, freed hard disk space, etc, etc. Before going back to my trusted (and perfectly adequate) Windows 10 environment, I'd like to hear if anyone else has had the same issue and has found a solution. It's sufficiently annoying for me to seriously consider remaining with an outdated OS for development but I am willing to accept that it's an issue with my specific machine and installation. Thanks John
paw Posted October 23 Posted October 23 I'm not using Windows 11 but I heard that microsoft forces files into OneDrive and uploads them to their servers by default. Check if it's doing that in storage settings and make sure all your files are actually stored on your PC and not OneDrive. After that I'd uninstall OneDrive just to be sure.
WildByDesign Posted October 23 Posted October 23 Just a couple of initial thoughts: Are you running SciTE 32-bit binary or 64-bit binary? Have you tried temporarily disabling Windows Defender real-time protection? This is not something that you should have to do, but I am only curious to see if somehow Defender is slowing down the process of saving your script. So if you could temporarily turn off the real-time protection of Defender in the Windows Security app, you can at least rule this possibility out. Turn the protection back on after, of course. And if it does end up being Defender getting in the way, there are ways to exclude certain directories and/or processes from the real-time scanning.
g0gcd Posted October 23 Author Posted October 23 (edited) Thanks for the ideas. Going back to Win10 proved to be a disaster. Fortunately I had made a system backup of this Windows11 installation and was able to recover. So it looks like I'm going to have to find/fix the issue or learn to live with it. OneDrive. That went as soon as WIndows 11 was installed. I'm not a cloud based guy (they said at work that Amazon AWS would never go down. Well who had the last laugh?) My files are local and I've just rechecked to make sure that no sneaky update process has switched OneDrive back on again. Was a good idea but I don't think that it's that. SciTE. I'm running the 32 bit binary for maximum compatibility. However, it's another good idea and I'll try installing the 64bit AutoIT package tomorrow to rule that in or out. AV. I've just disabled Windows Defender whilst testing the save and that's made no difference. To test, I add a space into the line and take it out. SciTE puts the asterisk next to the file name and then I click the save button. Nothing for 5 seconds, then 'not responding' appears in the title bar for 2 seconds, then the title back goes back to normal - file saved. Whilst in the AV I noticed an 'asynchronous scanning on Dev Drives' setting which seems to be scanning my non-system 'Data' Drives. Turned that off and on with no noticeable effect. I should have added that the script is saved in a folder on my desktop, which is sitting on a 256GB SSD, with 100GB free at the moment. I'll also try moving my development folder to a different location to see if that makes any difference. Good ideas - not seen these on other posts where people have noticed the problem. Thanks John Edit: Following up on another idea - that unavailable, yet mapped, drives cause save delays - I noticed that my File Explorer had a Phones folder. It was not openable because 'no connection with the server was possible'. With a little hunting, I found that it was trying to connect to my wife's phone (I have no idea why). As I don't use that, either, I've uninstalled the Phone Link app and deleted the folder; but no change to the issue unfortunately.. Edited October 23 by g0gcd Additional test information
mLipok Posted October 23 Posted October 23 (edited) My first tip: In the task manager, run the resource monitor, check what files are modified by SciTE and when you save yours Au3 file. Questions: 1. Which ScTE version you are using ? (default from AutoIt instalation ? full current Jos version ? Beta Jos version ? 2. Are you using BETA version with Dynamic LUA feature ? 3. On what kind of drive all yours au3 files are stored ? HDD, SSD, NVME ? 4. What kind of CPU you have and how much RAM ? (it is important when you migrate from Win10 to Win11) 5. Can you share to us results from "AS SSD Benchmark 2.0" Edited October 23 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
g0gcd Posted October 24 Author Posted October 24 (edited) My first tip: In the task manager, run the resource monitor, check what files are modified by SciTE and when you save yours Au3 file. OK. I can't see the Resource Monitor (I remember that from Windows 7) but there's a Performance tab that seems to do a similar thing. At the end of the delay, as SciTE comes back, the CPU jumps from 2% to about 40% then back. No disk activity visible on either physical drive, although AutoIT, SciTE and my source files are all currently on C:. I can't see a tab where I can identify which files are being processed but I'll continue looking. Questions: 1. Which ScTE version you are using ? (default from AutoIt instalation ? full current Jos version ? Beta Jos version ? Default from AutoIT v3.3.18.0 installation. Tried installing with both 32bit and 64bit as preferred options. Each time I install, I opt to remove the previous version. Help/About is showing: 32-bit Version 4.4.6 Mar 16 2021 13:51:55 by Neil Hodgson. Updated by Jos 2. Are you using BETA version with Dynamic LUA feature ? No 3. On what kind of drive all yours au3 files are stored ? HDD, SSD, NVME ? C Drive: Micron_1100_MTFDDAV256TBN M.2 SATA III 6GB/s SSD 540/500MB/s Read/Write D,Z Drives: Model CT1000BX500SSD1 2.5in SATA III 6GB/s SSD 540/500MB/s Read/Write AutoIT, SciTE and my source files are all currently on C:. 4. What kind of CPU you have and how much RAM ? (it is important when you migrate from Win10 to Win11) Processor Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz, 1800 Mhz, 4 Core(s), 8 Logical Processor(s) Installed Physical Memory (RAM) 16.0 GB Total Physical Memory 15.9 GB Available Physical Memory 10.7 GB Total Virtual Memory 17.8 GB Available Virtual Memory 12.8 GB (I have my page file set at a fixed size of 2GB on Drive C) 5. Can you share to us results from "AS SSD Benchmark 2.0" C Drive <?xml version="1.0" encoding="utf-8"?> <ASSSDBenchmark XmlFormatVersion="1"> <Information> <Name>Micron_1100_MTFDDAV256TBN</Name> <Firmware> M0MA020</Firmware> <Controller>iaStorAC</Controller> <Size>238.47 GB</Size> <DateTime>24/10/2025 14:45:10</DateTime> <BenchmarkVersion>2.0.7316.34247</BenchmarkVersion> <Mode>MB/s</Mode> <Note /> <Signature /> </Information> <SeqTest> <Read>492.63 MB/s</Read> <Write>474.80 MB/s</Write> </SeqTest> <Random4K1TTest> <Read>20.81 MB/s</Read> <Write>66.24 MB/s</Write> </Random4K1TTest> <Random4K64TTest> <Read>234.34 MB/s</Read> <Write>265.95 MB/s</Write> </Random4K64TTest> <AccTimeTest> <Read>0.149 ms</Read> <Write>0.061 ms</Write> </AccTimeTest> <Score> <Read>304</Read> <Write>380</Write> <Total>846</Total> </Score> </ASSSDBenchmark> D Drive for completeness <?xml version="1.0" encoding="utf-8"?> <ASSSDBenchmark XmlFormatVersion="1"> <Information> <Name>CT1000BX500SSD1</Name> <Firmware>M6CR072</Firmware> <Controller>iaStorAC</Controller> <Size>931.51 GB</Size> <DateTime>24/10/2025 14:52:10</DateTime> <BenchmarkVersion>2.0.7316.34247</BenchmarkVersion> <Mode>MB/s</Mode> <Note /> <Signature /> </Information> <SeqTest> <Read>515.45 MB/s</Read> <Write>413.52 MB/s</Write> </SeqTest> <Random4K1TTest> <Read>23.62 MB/s</Read> <Write>58.97 MB/s</Write> </Random4K1TTest> <Random4K64TTest> <Read>155.49 MB/s</Read> <Write>218.35 MB/s</Write> </Random4K64TTest> <AccTimeTest> <Read>0.135 ms</Read> <Write>0.155 ms</Write> </AccTimeTest> <Score> <Read>231</Read> <Write>319</Write> <Total>671</Total> </Score> </ASSSDBenchmark> I have checked and the 'Windows 11 CFA (protected folder access)' feature under Ransomware is disabled Thanks for hand holding me here. I'm sure that the solution is simple. I'm frustrated that this upgrade is eating into my project time! Best wishes John Edited October 24 by g0gcd Added SciTE version info
WildByDesign Posted October 24 Posted October 24 It might be worthwhile to try the SciTE beta 5 binaries: https://www.autoitscript.com/autoit3/scite/download/beta_SciTE4AutoIt3/ There are many improvements there. I switched to that many months ago and haven’t looked back. Again, make sure you go with 64-bit.
argumentum Posted October 24 Posted October 24 (edited) re-install/update the VCredist x86. Maybe that's all there is to it. Edited October 24 by argumentum g0gcd 1 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
g0gcd Posted October 24 Author Posted October 24 (edited) Hi argumentum, How does VCredist x86 fit into the picture? Before doing any further updates, I don't want to be changing too many things at once and misleading everyone. I think that mLipok is helping me check that my machine is up to the job at the moment and I'm tempted by WildByDesign's suggestion to try a more recent editor (although I usually steer away from Beta releases). I'd just like to understand what that module does ... It has occurred to me that I've not been as aware of a save lag on any of the other programs that I use - most of my screen time is AutoIT at the moment. I'll go away and do some tests with a more broad base of files to see if I'm focussed on the wrong target. Edit: Saving a 1MB Word 2010 doc and a 600k JPG image, from/to the same folder as my .au3 files, took no time at all. Thanks for the suggestions all.. John G0GCD Edited October 24 by g0gcd Updated findings
argumentum Posted October 24 Posted October 24 3 minutes ago, g0gcd said: How does VCredist x86 fit into the picture? SciTE is compiled depending on these libraries to be at least from the same version and will not do anything other than those libraries. It takes a minute to do and you'd see results right away if that was the culprit. Your hardware is what is. No need to dig deep into what you have or not. That PC is 6 or 7 years old ( my guess ) and that's that. But it feels much slower with SciTE. That library update is not a big deal. 10 minutes ago, g0gcd said: Before doing any further updates, I don't want to be changing too many things at once and misleading everyone. Am not after "what was the problem" or who solved it. Just to fix it. 19 hours ago, g0gcd said: I'm running the 32 bit binary for maximum compatibility. However, it's another good idea and I'll try installing the 64bit AutoIT package tomorrow to rule that in or out. Nah, the x86 should work just as well. But the VCredist needs to be up to date.** If that wasn't it then, windows 10 IoT enterprise end of life is in 2027, and there should be a way to buy it online if you need the support. ** I mean the SciTE editor. The one on the site and not the beta ( v5 ) that has a 64 and 32 bit compile. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
g0gcd Posted October 24 Author Posted October 24 argumentum.. Got it. Thanks I'll try updating VCredist and see if that helps. (Spot on with the PC age, by the way. I hate chucking away what seems like perfectly good hardware .. but .. perhaps time to catch up now!) Thanks John argumentum 1
mLipok Posted October 24 Posted October 24 1 hour ago, g0gcd said: Processor Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz, 1800 Mhz, 4 Core(s), 8 Logical Processor(s) I have i5-8350U nad NVME Samsung 980 Wondering ... do you use SSD thumb drive / pendrive for au3 files - I had such issue in the past. Is it DeskTop or Notebook ? What is your "ENERGY PLAN" or "POWER SCHEME" in windows. try also: powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61 and then choose the "highest performance" 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
WildByDesign Posted October 24 Posted October 24 (edited) 57 minutes ago, g0gcd said: Edit: Saving a 1MB Word 2010 doc and a 600k JPG image, from/to the same folder as my .au3 files, took no time at all. So definitely an issue with SciTE it sounds like. I wonder if creating a fresh SciTE profile would help. If you do, don't forget to backup the original. EDIT: C:\Users\your-user-name\AppData\Local\AutoIt v3\SciTE Edited October 24 by WildByDesign g0gcd 1
g0gcd Posted Friday at 04:12 PM Author Posted Friday at 04:12 PM (edited) Thank you all so much. WildByDesign and I hit on the cause at the same time. I uninstalled AutoIT (again) and just checked through that it had all gone before restarting the machine. I discovered the C:\Users\your-user-name\AppData\Local\AutoIt v3 folders still sitting there with files in, so I deleted those. I also found several folders hanging around in odd places in the main folder structure, so it looks like I had some debris from my (now past) Windows 10 days which may have caused further problems. I deleted those too. Argumentum, yes, you were right - I had only installed the VCRedist C++ libraries up to 2017. Adding the missing 2018 to 2025 ones didn't immediately solve the problem but by being there, they have got to help. Did a fresh AutoIT v.3.3.18.0 install and found that the included SciTE Lite worked properly (i.e. as I had hoped) and then went on to install Jos' full SciTE v4.4.6 version and that works too. Solution: Do an AutoIT and SciTE uninstall and then delete the hidden C:\Users\<username>\AppData\Local\AutoIT v3\ folders before restarting and reinstalling. Check VCRedist status because upgrading Windows does not update the libraries. Once again, thanks to all of you for your help John G0GCD EDIT: For information, as I normally do, I updated my installation instructions and archived the installation files that I have used. (AutoIT3 v3.3.18.0, SciTE4AutoIT3 v4.4.6 on WIndows 11 Home). I then followed the instructions to ensure that I had cracked the problem but, unfortunately, I've broken the installation - the delay is back. So, briefly, I've unmarked the answer as a solution until I've bottomed it out. Clearly, however, it is to do with my machine and the versions of files that I'm using. I'll update the thread once I've fixed it. PS. Jos' SciTE4AutoIT3 v4.4.6 (installer), downloaded from https://www.autoitscript.com/site/autoit-script-editor/downloads/ still has the bug 'Missing Global $__WINVER declaration' in SciTe Jump.au3. Am I downloading the wrong thing? Edited Monday at 06:40 PM by g0gcd Update - installation broken again argumentum and WildByDesign 2
Solution g0gcd Posted Monday at 09:36 PM Author Solution Posted Monday at 09:36 PM OK, final comments from me on the topic. On my machine, I have a problem with Autoit v3.3.18.0 and SciTE4AutoIT3 v4.4.6 (16th March 2021) working together. I can now reliably introduce the (at least) 5 second delay on file saves when this combination is installed. (I really don't know why it worked yesterday!) Degrading AutoIT3 to v3.3.16.1 OR degrading SciTE4AutoIT3 fixes the problem without changing anything in Windows. I now have Autoit v3.3.18.0 and SciTE4AutoIT3 v4.2.0 (3th September 2019) running together, with no noticeable save delay. For me, the only annoyance is that the SciTE backups now appear in the script folder, instead of a backup folder, which was clearly improved when SciTE4AutoIT3 was updated. The missing declaration 'bug' in SciTe Jump.au3 is in all versions I could find, including in the script in the Beta folder pointed to by Jos' signature. Unfortunately, I don't know how to download and install the Beta version of SciTE4AutIT3 (I'm used to having a Windows 'install' utility), otherwise I'd have given that a try. I have had to install AutoIT and SciTE to a non program folder (C:\Program Files (Legacy)\AutoIT3\) because Windows won't let me correct the bug and save SciTE Jump.au3 in the Programs (x86) folder, due to permissions settings. I seem to be the only one affected by the problem BUT I hope that these observations may help anyone else who may trip over this issue when they have to move from Windows 10 to 11. Thanks everyone John G0GCD argumentum 1
argumentum Posted Tuesday at 02:10 AM Posted Tuesday at 02:10 AM 4 hours ago, g0gcd said: I seem to be the only one... At least the only one to report it. And I have to say that I like edge scenarios because the bring up, stuff, that otherwise goes unnoticed. Now all we need is to buy a few laptops like yours for the devs. to troubleshoot the code 😄 4 hours ago, g0gcd said: For me, the only annoyance is that the SciTE backups now appear in the script folder, instead of a backup folder, which was clearly improved when SciTE4AutoIT3 was updated. That should be simple to solve, I think. You can copy the tidy.exe from beta, and see if that does it. Spoiler I have a Proxmox box with a N6000 CPU. Maybe I can create a VM there and "look" at the speed it loads the old vs the new, AutoIt3(s) and SciTE(s). 4 hours ago, g0gcd said: Degrading AutoIT3 to v3.3.16.1 OR degrading SciTE4AutoIT3 fixes the problem ... I now have Autoit v3.3.18.0 and SciTE4AutoIT3 v4.2.0 (3th September 2019) running together, with no noticeable save delay. When I find the time, I'll create the VM and try to see what is going on. Because the above is unbelievable. That should no happen ( yet it does for you ). I'll investigate even if you no longer need it. ( one of these days, am quite busy ) Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
argumentum Posted 23 hours ago Posted 23 hours ago ...and I did it. Installed v3.3.18.0 in a VM ( in proxmox ) with a slow N6000 CPU and 16 gigs of RAM. Did replace Tidy with the one in the beta folder because it needed it. Also run both Visual C++ redistributable installers. The code I used was "AutoIt3\Examples\GUI\SampleControls.au3" ( that is far smaller than your project ) and the script loaded in 342 mSec. The wrapper, that I patched with: ... If $RunBySciTE Then __ConsoleWrite(' CodePage:' & SendSciTE_GetInfo($My_Hwnd, $SciTE_hwnd, "askproperty:code.page")) __ConsoleWrite(' utf8.auto.check:' & SendSciTE_GetInfo($My_Hwnd, $SciTE_hwnd, "askproperty:utf8.auto.check")) EnvSet("TimerInitScite", TimerInit()) ; added by argumentum EndIf ... and the script I patched as: expandcollapse popup#Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=..\Program Files (x86)\AutoIt3\Icons\au3.ico #AutoIt3Wrapper_UseX64=y #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** ; AutoIt GUI Example ; Created: 17/01/2005 - CyberSlug ; Modifed: 05/12/2011 - guinness ; Modifed: 09/06/2014 - mLipok ; Modifed: 15/10/2018 - mLipok Global $hTimer = TimerInit() #Region INCLUDE #include <AVIConstants.au3> #include <GuiConstantsEx.au3> #include <TreeViewConstants.au3> #EndRegion INCLUDE #Region INITIALIZATION and EXIT _Example() Exit ; Finished! #EndRegion INITIALIZATION and EXIT Func _Example() Local $sExamplesGUI = StringLeft(@AutoItExe, StringInStr(@AutoItExe, "\", 0, -1)) & "Examples\GUI\" #Region GUI GUICreate("Sample GUI", 400, 400) GUISetIcon(@SystemDir & "\mspaint.exe", 0) #EndRegion GUI #Region MENU Local $idMenu1 = GUICtrlCreateMenu("Menu &One") Local $idMenu2 = GUICtrlCreateMenu("Menu &Two") #forceref $idMenu2 GUICtrlCreateMenu("Menu Th&ree") GUICtrlCreateMenu("Menu &Four") GUICtrlCreateMenuItem('SubMenu One &A', $idMenu1) GUICtrlCreateMenuItem('SubMenu One &B', $idMenu1) #EndRegion MENU #Region CONTEXT MENU Local $idContextMenu = GUICtrlCreateContextMenu() GUICtrlCreateMenuItem("Context Menu", $idContextMenu) GUICtrlCreateMenuItem("", $idContextMenu) ; Separator GUICtrlCreateMenuItem("&Properties", $idContextMenu) #EndRegion CONTEXT MENU #Region PIC GUICtrlCreatePic($sExamplesGUI & "logo4.gif", 0, 0, 169, 68) GUICtrlSetTip(-1, '#Region PIC') GUICtrlCreateLabel("Sample Pic", 75, 1, 53, 15) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUICtrlSetColor(-1, 0xFFFFFF) #EndRegion PIC #Region AVI GUICtrlCreateAvi($sExamplesGUI & "SampleAVI.avi", 0, 180, 10, 32, 32, $ACS_AUTOPLAY) GUICtrlSetTip(-1, '#Region AVI') ; TODO GUICtrlCreateLabel("Sample avi", 175, 50) GUICtrlSetTip(-1, '#Region AVI - Label') #EndRegion AVI #Region TAB GUICtrlCreateTab(240, 0, 150, 70) GUICtrlCreateTabItem("One") GUICtrlSetTip(-1, '#Region TAB1') GUICtrlCreateLabel("Sample Tab with TabItems", 250, 40) GUICtrlCreateTabItem("Two") GUICtrlSetTip(-1, '#Region TAB2') GUICtrlCreateTabItem("Three") GUICtrlSetTip(-1, '#Region TAB3') GUICtrlCreateTabItem("") #EndRegion TAB #Region COMBO GUICtrlCreateCombo("Sample Combo", 250, 80, 120, 100) GUICtrlSetTip(-1, '#Region COMBO') #EndRegion COMBO #Region PROGRESS GUICtrlCreateProgress(60, 80, 150, 20) GUICtrlSetTip(-1, '#Region PROGRES') GUICtrlSetData(-1, 60) GUICtrlCreateLabel("Progress:", 5, 82) GUICtrlSetTip(-1, '#Region PROGRES - Label') #EndRegion PROGRESS #Region EDIT GUICtrlCreateEdit(@CRLF & " Sample Edit Control", 10, 110, 150, 70) GUICtrlSetTip(-1, '#Region EDIT') #EndRegion EDIT #Region LIST GUICtrlCreateList("", 5, 190, 100, 90) GUICtrlSetTip(-1, '#Region LIST') GUICtrlSetData(-1, "A.Sample|B.List|C.Control|D.Here", "B.List") #EndRegion LIST #Region ICON GUICtrlCreateIcon("explorer.exe", 0, 175, 120) GUICtrlSetTip(-1, '#Region ICON') GUICtrlCreateLabel("Icon", 180, 160, 50, 20) GUICtrlSetTip(-1, '#Region ICON - Label') #EndRegion ICON #Region LIST VIEW Local $idListView = GUICtrlCreateListView("Sample|ListView|", 110, 190, 110, 80) GUICtrlSetTip(-1, '#Region LIST VIEW') GUICtrlCreateListViewItem("A|One", $idListView) GUICtrlCreateListViewItem("B|Two", $idListView) GUICtrlCreateListViewItem("C|Three", $idListView) #EndRegion LIST VIEW #Region GROUP WITH RADIO BUTTONS GUICtrlCreateGroup("Sample Group", 230, 120) GUICtrlCreateRadio("Radio One", 250, 140, 80) GUICtrlSetTip(-1, '#Region GROUP WITH RADIO BUTTONS- RADIO1') GUICtrlSetState(-1, $GUI_CHECKED) GUICtrlCreateRadio("Radio Two", 250, 165, 80) GUICtrlSetTip(-1, '#Region GROUP WITH RADIO BUTTONS- RADIO2') GUICtrlCreateGroup("", -99, -99, 1, 1) ;close group #EndRegion GROUP WITH RADIO BUTTONS #Region UPDOWN GUICtrlCreateLabel("UpDown", 350, 115) GUICtrlSetTip(-1, '#Region UPDOWN - Label') GUICtrlCreateInput("42", 350, 130, 40, 20) GUICtrlSetTip(-1, '#Region UPDOWN - Input') GUICtrlCreateUpdown(-1) GUICtrlSetTip(-1, '#Region UPDOWN - Updown') #EndRegion UPDOWN #Region LABEL GUICtrlCreateLabel("Green" & @CRLF & "Label", 350, 165, 40, 40) GUICtrlSetTip(-1, '#Region LABEL') GUICtrlSetBkColor(-1, 0x00FF00) #EndRegion LABEL #Region SLIDER GUICtrlCreateLabel("Slider:", 235, 215) GUICtrlSetTip(-1, '#Region SLIDER - Label') GUICtrlCreateSlider(270, 210, 120, 30) GUICtrlSetTip(-1, '#Region SLIDER') GUICtrlSetData(-1, 30) #EndRegion SLIDER #Region INPUT GUICtrlCreateInput("Sample Input Box", 235, 255, 130, 20) GUICtrlSetTip(-1, '#Region INPUT') #EndRegion INPUT #Region DATE GUICtrlCreateDate("", 5, 280, 200, 20) GUICtrlSetTip(-1, '#Region DATE') GUICtrlCreateLabel("(Date control expands into a calendar)", 10, 305, 200, 20) GUICtrlSetTip(-1, '#Region DATE - Label') #EndRegion DATE #Region BUTTON GUICtrlCreateButton("Sample Button", 10, 330, 100, 30) GUICtrlSetTip(-1, '#Region BUTTON') #EndRegion BUTTON #Region CHECKBOX GUICtrlCreateCheckbox("Checkbox", 130, 335, 80, 20) GUICtrlSetTip(-1, '#Region CHECKBOX') GUICtrlSetState(-1, $GUI_CHECKED) #EndRegion CHECKBOX #Region TREEVIEW ONE Local $idTreeView_1 = GUICtrlCreateTreeView(210, 290, 80, 80) GUICtrlSetTip(-1, '#Region TREEVIEW ONE') Local $idTreeViewItem = GUICtrlCreateTreeViewItem("TreeView", $idTreeView_1) GUICtrlCreateTreeViewItem("Item1", $idTreeViewItem) GUICtrlCreateTreeViewItem("Item2", $idTreeViewItem) GUICtrlCreateTreeViewItem("Foo", -1) GUICtrlSetState($idTreeViewItem, $GUI_EXPAND) #EndRegion TREEVIEW ONE #Region TREEVIEW TWO Local $idTreeView_2 = GUICtrlCreateTreeView(295, 290, 103, 80, $TVS_CHECKBOXES) GUICtrlSetTip(-1, '#Region TREEVIEW TWO') GUICtrlCreateTreeViewItem("TreeView", $idTreeView_2) GUICtrlCreateTreeViewItem("With", $idTreeView_2) GUICtrlCreateTreeViewItem("$TVS_CHECKBOXES", $idTreeView_2) GUICtrlSetState(-1, $GUI_CHECKED) GUICtrlCreateTreeViewItem("Style", $idTreeView_2) #EndRegion TREEVIEW TWO #Region GUI MESSAGE LOOP GUISetState(@SW_SHOW) ConsoleWrite(@CRLF & TimerDiff($hTimer) & @CRLF & @CRLF) ConsoleWrite(@CRLF & TimerDiff(Int(EnvGet("TimerInitScite"))) & @CRLF & @CRLF) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd GUIDelete() #EndRegion GUI MESSAGE LOOP EndFunc ;==>_Example ( to run and compile from somewhere other than the "admin only" default install ) showing that it took 744 mSec in total since the wrapper loaded itself. Found no issue at all running from SciTE ( 16 March 2021 ) or compiling in a 25H2 ( build 26200.6901 ) fresh install. Note that I do tend go overboard some times. But in my defense.... I ain't got one. 😅 In any case this can serve as a way to share timings in a repeatable way Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
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