Developers Jos Posted May 25, 2020 Author Developers Share Posted May 25, 2020 I've uploaded a new Beta version of au3stripper that supports this directive: #Au3Stripper_Ignore_Errors=__DebugMsgBox_* and the output now is: >Running Au3Stripper (19.1127.1402.4) from:C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper cmdline: - 2.38 Iteration 1 Strip Functions result: Output 3800 lines, stripped 11057 Func lines and 12080 Commentlines - ignored 1 error(s) in UDF's defined in #Au3Stripper_Ignore_Errors. - 4.75 Iteration 2 Strip Variables result: Output 388 lines and stripped 3412 lines - 4.91 Iteration 3 Strip Variables result: Output 254 lines and stripped 134 lines - 5.00 Iteration 4 Strip Variables result: Output 249 lines and stripped 5 lines - 5.09 Iteration 5 Strip Variables result: Output 249 lines and stripped 0 lines +> Source 27490 lines 1284597 Characters. +> Stripped 14608 Func/Var lines and 12080 comment lines, Total 1270797 Characters. +> Saved 97% lines 98% Characters. An extra line will show the number of Errors ignored due to this new directive when there are any. Jos argumentum 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...
argumentum Posted May 25, 2020 Share Posted May 25, 2020 (edited) somehow I get +> Au3Stripper v19.1127.1402.4 finished created:N:\AppToInstall\AutoIt v3.3.14.5\My Additions for v3.3.15.5\Include\OnDebugMsgBox\OnDebugMsgBox(1.2020.5.25)\OnDebugMsgBox_Example_stripped.au3 !>16:26:42 --------------------------------------------------------------- !>16:26:42 Au3Stripper ended with errors, using original scriptfile.rc:1 !>16:26:42 --------------------------------------------------------------- I looked at AutoIt3Wrapper.au3 and there is nothing to change there for this to work, yet it didn't. Anything I should look at ? Edit: full console Spoiler >"C:\ProgFilesSelf\AutoIt3\SciTE\..\AutoIt3.exe" "C:\ProgFilesSelf\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /ShowGui /prod /in "N:\AppToInstall\AutoIt v3.3.14.5\My Additions for v3.3.15.5\Include\OnDebugMsgBox\OnDebugMsgBox(1.2020.5.25)\OnDebugMsgBox_Example.au3" +>16:32:46 Starting AutoIt3Wrapper (19.1127.1402.2} from:SciTE.exe (4.1.2.0) Keyboard:00000409 OS:WIN_10/ CPU:X64 OS:X64 Environment(Language:0409) CodePage:0 utf8.auto.check:4 +> SciTEDir => C:\ProgFilesSelf\AutoIt3\SciTE UserDir => C:\Users\Tester\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper SCITE_USERHOME => C:\Users\Tester\AppData\Local\AutoIt v3\SciTE -> No changes made.. >Running Au3Stripper (19.1127.1402.4) from:C:\ProgFilesSelf\AutoIt3\SciTE\Au3Stripper cmdline: -### StripOnly/StripFunc Error: Found DllCallbackRegister() statement using unsolvable Func, which will/could lead to removal of Funcs that are used by this Function. >### current Func: _wi n:\apptoinstall\autoit v3.3.14.5\my additions for v3.3.15.5\include\ondebugmsgbox\ondebugmsgbox(1.2020.5.25)\ondebugmsgbox.au3(340,1): Warning for line:DllStructSetData($tFunctionOffset, 1, DllCallbackGetPtr(DllCallbackRegister($vNewFunction, $sRet, $sParams))) -============================================================================================================= -#### Au3Stripper Found 1 Error(s)!!!! This means your script could have problems running properly. #### -============================================================================================================= - 2.41 Iteration 1 Strip and Rename Functions result: Output 5391 lines and stripped 15833 lines - 4.75 Iteration 2 Strip Variables result: Output 1447 lines and stripped 3944 lines - 4.94 Iteration 3 Strip Variables result: Output 1295 lines and stripped 152 lines - 5.09 Iteration 4 Strip Variables result: Output 1290 lines and stripped 5 lines - 5.25 Iteration 5 Strip and Rename Variables result: Output 1290 lines and stripped 0 lines +> Source 36966 lines 1698072 Characters. +> Stripped 19934 Func/Var lines and 15182 comment lines, Total 1658911 Characters. +> Saved 94% lines 97% Characters. +> Au3Stripper v19.1127.1402.4 finished created:N:\AppToInstall\AutoIt v3.3.14.5\My Additions for v3.3.15.5\Include\OnDebugMsgBox\OnDebugMsgBox(1.2020.5.25)\OnDebugMsgBox_Example_stripped.au3 !>16:33:11 --------------------------------------------------------------- !>16:33:11 Au3Stripper ended with errors, using original scriptfile.rc:1 !>16:33:11 --------------------------------------------------------------- >Running:(3.3.14.5):C:\ProgFilesSelf\AutoIt3\aut2exe\aut2exe.exe /in "N:\AppToInstall\AutoIt v3.3.14.5\My Additions for v3.3.15.5\Include\OnDebugMsgBox\OnDebugMsgBox(1.2020.5.25)\OnDebugMsgBox_Example.au3" /out "C:\Users\Tester\AppData\Local\AutoIt v3\Aut2exe\~AU4980.tmp.exe" /nopack /comp 2 +>16:33:12 Aut2exe.exe ended.C:\Users\Tester\AppData\Local\AutoIt v3\Aut2exe\~AU4980.tmp.exe. rc:0 +>16:33:12 Created program:N:\AppToInstall\AutoIt v3.3.14.5\My Additions for v3.3.15.5\Include\OnDebugMsgBox\OnDebugMsgBox(1.2020.5.25)\OnDebugMsgBox_Example.exe +>16:33:13 AutoIt3Wrapper Finished. >Exit code: 0 Time: 27.48 Edited May 25, 2020 by argumentum Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
argumentum Posted May 25, 2020 Share Posted May 25, 2020 ..the now /rm function has another name. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
Developers Jos Posted May 25, 2020 Author Developers Share Posted May 25, 2020 Sorry, but I am seeing snippets without any background info here. The first is when you Compile another script OnDebugMsgBox_Example.au3 ? The second comment means what exactly? It would help me greatly when I don't have to puzzle to understand what might be meant in posts. 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...
argumentum Posted May 25, 2020 Share Posted May 25, 2020 the 2nd post is that I get to realize ( from the complete console output in the hidden content ), that after the /rm, au3stripper goes over the code again and is there where it finds the error. In my line of thinking, au3stripper found the error in the renamed function. ( my 2 cents., I don't know what is happening ) Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
Developers Jos Posted May 25, 2020 Author Developers Share Posted May 25, 2020 Must be late here but I have no idea what you are talking about..... sorry. 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...
argumentum Posted May 25, 2020 Share Posted May 25, 2020 34 minutes ago, Jos said: and the output now is: >Running Au3Stripper (19.1127.1402.4) from:C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper cmdline: - 2.38 Iteration 1 Strip Functions result: Output 3800 lines, stripped 11057 Func lines and 12080 Commentlines - ignored 1 error(s) in UDF's defined in #Au3Stripper_Ignore_Errors. - 4.75 Iteration 2 Strip Variables result: Output 388 lines and stripped 3412 lines - 4.91 Iteration 3 Strip Variables result: Output 254 lines and stripped 134 lines - 5.00 Iteration 4 Strip Variables result: Output 249 lines and stripped 5 lines - 5.09 Iteration 5 Strip Variables result: Output 249 lines and stripped 0 lines +> Source 27490 lines 1284597 Characters. +> Stripped 14608 Func/Var lines and 12080 comment lines, Total 1270797 Characters. +> Saved 97% lines 98% Characters. An extra line will show the number of Errors ignored due to this new directive when there are any. I don't have that result on my side. It shows the error. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
Developers Jos Posted May 25, 2020 Author Developers Share Posted May 25, 2020 (edited) 4 minutes ago, argumentum said: I don't have that result on my side. It shows the error. Ok... this is the last time I try: Provide me with a test script that I can test with so I can see what you are doing!!!!!! It honestly can't be that hard ....right? Edited May 25, 2020 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...
argumentum Posted May 25, 2020 Share Posted May 25, 2020 the file is OnDebugMsgBox_Example.au3 from https://www.autoitscript.com/forum/files/file/500-ondebugmsgbox/ And the output I get is >"C:\ProgFilesSelf\AutoIt3\SciTE\..\AutoIt3.exe" "C:\ProgFilesSelf\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /ShowGui /prod /in "C:\Users\Tester\Downloads\OnDebugMsgBox(1.2020.5.25)\OnDebugMsgBox_Example.au3" +>16:57:06 Starting AutoIt3Wrapper (19.1127.1402.2} from:SciTE.exe (4.1.2.0) Keyboard:00000409 OS:WIN_10/ CPU:X64 OS:X64 Environment(Language:0409) CodePage:0 utf8.auto.check:4 +> SciTEDir => C:\ProgFilesSelf\AutoIt3\SciTE UserDir => C:\Users\Tester\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper SCITE_USERHOME => C:\Users\Tester\AppData\Local\AutoIt v3\SciTE -> No changes made.. >Running Au3Stripper (19.1127.1402.4) from:C:\ProgFilesSelf\AutoIt3\SciTE\Au3Stripper cmdline: -### StripOnly/StripFunc Error: Found DllCallbackRegister() statement using unsolvable Func, which will/could lead to removal of Funcs that are used by this Function. >### current Func: _wi c:\users\tester\downloads\ondebugmsgbox(1.2020.5.25)\ondebugmsgbox.au3(340,1): Warning for line:DllStructSetData($tFunctionOffset, 1, DllCallbackGetPtr(DllCallbackRegister($vNewFunction, $sRet, $sParams))) -============================================================================================================= -#### Au3Stripper Found 1 Error(s)!!!! This means your script could have problems running properly. #### -============================================================================================================= - 2.44 Iteration 1 Strip and Rename Functions result: Output 5390 lines and stripped 15833 lines - 4.78 Iteration 2 Strip Variables result: Output 1446 lines and stripped 3944 lines - 4.97 Iteration 3 Strip Variables result: Output 1294 lines and stripped 152 lines - 5.13 Iteration 4 Strip Variables result: Output 1289 lines and stripped 5 lines - 5.28 Iteration 5 Strip and Rename Variables result: Output 1289 lines and stripped 0 lines +> Source 36965 lines 1698030 Characters. +> Stripped 19934 Func/Var lines and 15182 comment lines, Total 1658913 Characters. +> Saved 94% lines 97% Characters. +> Au3Stripper v19.1127.1402.4 finished created:C:\Users\Tester\Downloads\OnDebugMsgBox(1.2020.5.25)\OnDebugMsgBox_Example_stripped.au3 !>16:57:14 --------------------------------------------------------------- !>16:57:14 Au3Stripper ended with errors, using original scriptfile.rc:1 !>16:57:14 --------------------------------------------------------------- >Running:(3.3.14.5):C:\ProgFilesSelf\AutoIt3\aut2exe\aut2exe.exe /in "C:\Users\Tester\Downloads\OnDebugMsgBox(1.2020.5.25)\OnDebugMsgBox_Example.au3" /out "C:\Users\Tester\AppData\Local\AutoIt v3\Aut2exe\~AU4D1F.tmp.exe" /nopack /comp 2 +>16:57:15 Aut2exe.exe ended.C:\Users\Tester\AppData\Local\AutoIt v3\Aut2exe\~AU4D1F.tmp.exe. rc:0 +>16:57:15 Created program:C:\Users\Tester\Downloads\OnDebugMsgBox(1.2020.5.25)\OnDebugMsgBox_Example.exe +>16:57:16 AutoIt3Wrapper Finished. >Exit code: 0 Time: 9.811 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
Developers Jos Posted May 25, 2020 Author Developers Share Posted May 25, 2020 Ok... Now I understand what you are doing and what happens: The /RM function renames the function so doesn't match the original ignore errors name. I will have a look at this tomorrow whether that's easily fixable..... I knew this was going to be another "can of worms" ... Jos argumentum and mLipok 1 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 May 26, 2020 Author Developers Share Posted May 26, 2020 Just uploaded a new Beta of au3stripper which should fix the issue when using /rm. Please be aware that I also renamed the new Directive for clarity to: #Au3Stripper_Ignore_Errors_in_Func=__DebugMsgBox_* I have also added the original FuncName to the warning in case it isn't ignored so it is easier to figure the error out: -### StripOnly/StripFunc Error: Found DllCallbackRegister() statement using unsolvable Func, which will/could lead to removal of Funcs that are used by this Function. >### current Func: _0 Original_Func_Name:__tttt_messageboxw D:\Users\jvdza\Downloads\OnDebugMsgBox(1.2020.5.25)\test.au3(21,1): Warning for line:Local $hHandle = DllCallbackRegister($vNewFunction, $sRet, $sParams) Give that a spin and see ig that also works for you. Jos argumentum and Musashi 1 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...
argumentum Posted May 26, 2020 Share Posted May 26, 2020 it works beautifully. Brilliant !. therks 1 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
mLipok Posted May 27, 2020 Share Posted May 27, 2020 (edited) @Jos recently I start to use: #AutoIt3Wrapper_Run_After=z:\TOOLs\Macro\PROGRAMY\_DigitalSign\ML_Signer.exe "%out%" "Z:\TOOLs\Macro\PROGRAMY\_DigitalSign\ML_Comodo.pfx" Today I just found that in case of error : Quote .................. +>03:47:04 Starting AutoIt3Wrapper (19.1127.1402.6} from:SciTE.exe (4.2.0.0) Keyboard:00000415 OS:WIN_10/1909 CPU:X64 OS:X64 Environment(Language:0809) CodePage:65001 utf8.auto.check:4 .................. >Running:z:\TOOLs\Macro\PROGRAMY\_DigitalSign\ML_Signer.exe "Z:\TOOLs\Macro\PROGRAMY\Skaner\Skaner.exe" "Z:\TOOLs\Macro\PROGRAMY\_DigitalSign\ML_Comodo.pfx" .................. ! Signer intercept COM Error ! $oError.description is: Proces nie może uzyskać dostępu do pliku, ponieważ jest on używany przez inny proces. (my own translation by hand: Process could not access file, because the file is used by another process) ! $oError.windescription: Wystąpił wyjątek. (my own translation by hand: exception occured) ! $oError.number is: 80020009 ! $oError.lastdllerror is: 0 ! $oError.scriptline is: -1 ! $oError.source is: ! $oError.helpfile is: ! $oError.helpcontext is: 0 >z:\TOOLs\Macro\PROGRAMY\_DigitalSign\ML_Signer.exe "Z:\TOOLs\Macro\PROGRAMY\Skaner\Skaner.exe" "Z:\TOOLs\Macro\PROGRAMY\_DigitalSign\ML_Comodo.pfx" Ended rc:20 +>03:47:53 AutoIt3Wrapper Finished.>Exit code: 0 Time: 49.96 My program ML_Signer.exe properly set rc:20 but AutoIt3Wrapper ends with Exit code: 0 I think this is not the way this process should be ended. If APP defined by #AutoIt3Wrapper_Run_After ends with error then AutoIt3Wrapper also should also return error. Of course the exit code from AutoIt3Wrapper could be different than this one returned by APP which was runned "after". What is your opinion about this ? Edited May 27, 2020 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...
argumentum Posted May 27, 2020 Share Posted May 27, 2020 ..you'd need to add stuff. #AutoIt3Wrapper_Run_After="z:\TOOLs\Macro\PROGRAMY\_DigitalSign\ML_Signer.exe "%out%" "Z:\TOOLs\Macro\PROGRAMY\_DigitalSign\ML_Comodo.pfx"" after you encase it it will run just fine Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
mLipok Posted May 27, 2020 Share Posted May 27, 2020 (edited) 5 minutes ago, argumentum said: ..you'd need to add stuff. #AutoIt3Wrapper_Run_After="z:\TOOLs\Macro\PROGRAMY\_DigitalSign\ML_Signer.exe "%out%" "Z:\TOOLs\Macro\PROGRAMY\_DigitalSign\ML_Comodo.pfx"" after you encase it it will run just fine This is not the problem. Normally all works fine. Form about 2 weeks this problem occured maybe 3 times. EDIT: Even if I set this wrong, in case of any problem AutoIt3Wrapper should not return Exit code: 0 Edited May 27, 2020 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...
argumentum Posted May 27, 2020 Share Posted May 27, 2020 ..i use my own with #AutoIt3Wrapper_Run_After=""%scitedir%\Tools\SignThisFile\CertSigner.exe" "%out%" /NoPopup /NoLogFile" Don't have a problem. Anyway, I thought that the problem was the encasing Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
mLipok Posted May 27, 2020 Share Posted May 27, 2020 Just now, argumentum said: I thought that the problem was the encasing no. The problem occured because: Quote ! $oError.description is: Proces nie może uzyskać dostępu do pliku, ponieważ jest on używany przez inny proces. (my own translation by hand: Process could not access file, because the file is used by another process) ! $oError.windescription: Wystąpił wyjątek. (my own translation by hand: exception occured) 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...
argumentum Posted May 27, 2020 Share Posted May 27, 2020 1 minute ago, mLipok said: Process could not access file, because the file is used by another process) ok, the next question Jos is gonna ask, is if you are using and antivirus or the like, that may be locking the file right at the time you try to sign it. ...classic debugging, like, is your PC plug to the wall and has electricity ( common IT joke ) Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
Nine Posted May 27, 2020 Share Posted May 27, 2020 (edited) @Jos If you run second example of ConsoleWrite, you will see a couple of issues. First, the "(line number)" doesn't jump to that line in Scite when double-click, nor it is displayed in red. Second, Shift+F5 is both use as Test Run and Clear Output in Scite Tools menu. 3.3.14.5 au3 / 3.3.15.3 beta / 4.2.0 Scite Edited May 27, 2020 by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Developers Jos Posted May 27, 2020 Author Developers Share Posted May 27, 2020 4 hours ago, mLipok said: What is your opinion about this ? The issue with using the returncodes of any _run_before or _run_after runs is that you can have multiple and they often do not adhere to 0=ok anything else is wrong. So what now would be the correct returncode to report when you run multiple Before and After processes? It currently reports the result of it core supported processes, which to me is the only right way of doing this. 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...
Recommended Posts