Developers Jos Posted May 19, 2014 Author Developers Share Posted May 19, 2014 Tidy does check for: [ProgramSettings] * * * Skip Indent commentblocks 0=no 1=yes Skip_CommentBlock=1 Doesn't that work for you? 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...
jpm Posted May 19, 2014 Share Posted May 19, 2014 I noticed that skip_commentblock can be set via command line parameter. When I set it through tidy.ini it doesn't seem to work. This particular parameter isn't documented as far as I could tell. Am I using the right thing? Or am I completely in the wrong? I hope you update the tidy.ini in the right dir userappdatalocalautoit v3scitetidytidy.ini Link to comment Share on other sites More sharing options...
jaberwacky Posted May 19, 2014 Share Posted May 19, 2014 (edited) Gosh, I was looking at a block of comment lines. Durrrr. Thanks! I did find a possible issue though. If you tidy this then everything inside of #CS and #CE is deleted: #cs ; ********************************************************************************************************************* ; *********************************************************************************************************************\ ; *********************************************************************************************************************\ ; ********************************************************************************************************************* ; ********************************************************************************************************************* #ce Also, the skip_commentblock doesn't seem to be in the tidy.ini and isn't listed in the tidy documentation except under command line parameters. Unless I'm mistaken once again. Edited May 19, 2014 by jaberwacky Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
Developers Jos Posted May 19, 2014 Author Developers Share Posted May 19, 2014 (edited) Gosh, I was looking at a block of comment lines. Durrrr. Thanks! I did find a possible issue though. If you tidy this then everything inside of #CS and #CE is deleted: #cs ; ********************************************************************************************************************* ; *********************************************************************************************************************\ ; *********************************************************************************************************************\ ; ********************************************************************************************************************* ; ********************************************************************************************************************* #ce Fixed in current Beta Tidy v 2.4.1.2. Also, the skip_commentblock doesn't seem to be in the tidy.ini and isn't listed in the tidy documentation except under command line parameters. Unless I'm mistaken once again. It is added to the example Tidy.ini for the next release. Jos Edited May 19, 2014 by Jos jaberwacky 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...
FaridAgl Posted May 20, 2014 Share Posted May 20, 2014 (edited) I'm not sure but I guess the proper format for a multidimensional array is: [["{ESC}", $keyClose], ["{F5}", $keyRefresh]] If yes, Tidy removes the space after the dimensional separator comma: [["{ESC}", $keyClose],["{F5}", $keyRefresh]] Edited May 20, 2014 by D4RKON3 http://faridaghili.ir Link to comment Share on other sites More sharing options...
mLipok Posted May 20, 2014 Share Posted May 20, 2014 D4RKON3 also known as the "eagle eye" 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...
FaridAgl Posted May 20, 2014 Share Posted May 20, 2014 That's my middle name http://faridaghili.ir Link to comment Share on other sites More sharing options...
Inververs Posted May 21, 2014 Share Posted May 21, 2014 (edited) some mistake in Au3Stripper documentation: instead command.name.46*.au3=Au3Stripper must command.name.46.*.au3=Au3Stripper instead command.46.*.au3="$(SciTEDefaultHome)Au3StripperAu3Stripper.exe" must command.46.*.au3="$(SciteDefaultHome)au3StripperAu3Stripper.exe" "$(FilePath)" Edited May 21, 2014 by Inververs Link to comment Share on other sites More sharing options...
FaridAgl Posted May 21, 2014 Share Posted May 21, 2014 (edited) Jos, I'm trying to remove some unnecessary resources after comping the script using #AutoIt3Wrapper_Res_Remove, am I using this the correct way? #AutoIt3Wrapper_Res_Remove=Menu, 166, 2057 It says: ...>Adding / Removing 1 resource(s). !>15:59:54 Error: EndUpdateResource: Returncode = 0 - LastError:1359:An internal error occurred.rc:2 !>15:59:54 Error: Program Resource updating Failed. The output program will not contain the Resource updates!rc:2 Edited May 21, 2014 by D4RKON3 http://faridaghili.ir Link to comment Share on other sites More sharing options...
Developers Jos Posted May 21, 2014 Author Developers Share Posted May 21, 2014 some mistake in Au3Stripper documentation: instead command.name.46*.au3=Au3Stripper must command.name.46.*.au3=Au3Stripper instead command.46.*.au3="$(SciTEDefaultHome)Au3StripperAu3Stripper.exe" must command.46.*.au3="$(SciteDefaultHome)au3StripperAu3Stripper.exe" "$(FilePath)" Will update. Thanks 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 May 21, 2014 Author Developers Share Posted May 21, 2014 Jos, I'm trying to remove some unnecessary resources after comping the script using #AutoIt3Wrapper_Res_Remove, am I using this the correct way? #AutoIt3Wrapper_Res_Remove=Menu, 166, 2057 It says: ...>Adding / Removing 1 resource(s). !>15:59:54 Error: EndUpdateResource: Returncode = 0 - LastError:1359:An internal error occurred.rc:2 !>15:59:54 Error: Program Resource updating Failed. The output program will not contain the Resource updates!rc:2 That should read: #AutoIt3Wrapper_Res_Remove=RT_MENU, 166, 2057 Jos meoit 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 21, 2014 Author Developers Share Posted May 21, 2014 I'm not sure but I guess the proper format for a multidimensional array is: [["{ESC}", $keyClose], ["{F5}", $keyRefresh]] If yes, Tidy removes the space after the dimensional separator comma: [["{ESC}", $keyClose],["{F5}", $keyRefresh]] That indeed the way it should be and is changed in the current Beta Tidy v2.4.1.3 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...
FaridAgl Posted May 21, 2014 Share Posted May 21, 2014 That indeed the way it should be and is changed in the current Beta Tidy v2.4.1.3 Jos Thanks, I see it's fixed now, That should read: #AutoIt3Wrapper_Res_Remove=RT_MENU, 166, 2057 Jos Thanks again, it works, I found the following information: http://msdn.microsoft.com/en-us/library/ms648009(v=vs.85).aspx It's ok for RT_DIALOG and RT_STRING, but I wasn't able to remove RT_GROUP_ICON. #AutoIt3Wrapper_Res_Remove=RT_GROUP_ICON, 162, 2057 #AutoIt3Wrapper_Res_Remove=RT_GROUP_ICON, 164, 2057 #AutoIt3Wrapper_Res_Remove=RT_GROUP_ICON, 169, 2057 http://faridaghili.ir Link to comment Share on other sites More sharing options...
Developers Jos Posted May 21, 2014 Author Developers Share Posted May 21, 2014 Thanks again, it works, I found the following information:http://msdn.microsoft.com/en-us/library/ms648009(v=vs.85).aspx It's ok for RT_DIALOG and RT_STRING, but I wasn't able to remove RT_GROUP_ICON. #AutoIt3Wrapper_Res_Remove=RT_GROUP_ICON, 162, 2057 #AutoIt3Wrapper_Res_Remove=RT_GROUP_ICON, 164, 2057 #AutoIt3Wrapper_Res_Remove=RT_GROUP_ICON, 169, 2057 We have that listed in the Table as: RT_GROUPICON Local $aRESOURCE_TYPES[24] = ["RT_CURSOR", "RT_BITMAP", "RT_ICON", "RT_MENU", "RT_DIALOG", "RT_STRING", "RT_FONTDIR", "RT_FONT", "RT_ACCELERATOR", _ "RT_RCDATA", "RT_MESSAGETABLE", "RT_GROUPCURSOR", "", "RT_GROUPICON", "", "RT_VERSION", "RT_DLGINCLUDE", "", "RT_PLUGPLAY", _ "RT_VXD", "RT_ANICURSOR", "RT_ANIICON", "RT_HTML", "RT_MANIFEST"] Jos meoit 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...
FaridAgl Posted May 21, 2014 Share Posted May 21, 2014 Thanks for the info, well done. http://faridaghili.ir Link to comment Share on other sites More sharing options...
Developers Jos Posted May 22, 2014 Author Developers Share Posted May 22, 2014 (edited) ps. I checked all the help in terms of news. By the way, I found these few above-described problems. I have changed the creation of the online version of the helpfile, which is now auto-generated from the SciTE4AutoIt3 helpfile and thus should be in sync from now on without any extra effort. http://www.autoitscript.com/autoit3/scite/docs/Help.html Jos Edited May 22, 2014 by Jos jaberwacky 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...
mLipok Posted May 22, 2014 Share Posted May 22, 2014 Thanks this is very good news 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...
archrival Posted May 29, 2014 Share Posted May 29, 2014 Is there a theoretical size limit to the amount of code that can be stripped? I have source code containing around 70,000 lines of code totaling approximately 2.8 MB of source code not counting the AutoIt includes. Au3Stripper crashes while trying to parse the includes, it consistently stops at the same place. It really doesn't matter which combination of parameters I use, it fails every time. I would like to use /PE /RM /SF=1 /SV=1. If it makes any difference, the old obfuscator would crash as well. Link to comment Share on other sites More sharing options...
Mungo Posted May 29, 2014 Share Posted May 29, 2014 Hi Jos et al., I update to SciTE V. 3.4.1 of Mar 30 2014 21:57:28 and noticed that my Color Scheme was changed. Trying to adjust it I found that changes (to the config) are not being applied or saved. It does not seem to do any difference whatever Color Scheme I select or manual changes I apply. I assume it should be saved in %LOCALAPPDATA%AutoIt v3SciTESciTEUser.properties ? The AppData dir only shows the following dirs and no files. C:UsersxxxAppDataLocalAutoIt v3 C:Users xxx AppDataLocalAutoIt v3Aut2Exe Thanks Jos 1 Link to comment Share on other sites More sharing options...
Developers Jos Posted May 29, 2014 Author Developers Share Posted May 29, 2014 Did you use the installer to update? 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