- Are you a beginner and want to learn from an expert?
- Or are you searching for a macro reference with some special hints and more?
- Or do you want to comment your macros and view it with syntax highlighting and indentations?
- Or do you write sometimes or often complex UltraEdit / UEStudio macros and don't like writing it in the small edit macro dialog?
I have created a package which contains following:
- A macro file with complex macros ready for usage.
To be more precise, the package contains 2 macro files:
Mofis_Macro_Examples.mac is compatible with any UltraEdit since v10.20 and all versions of UEStudio.
Mofis_Macro_Examples_old.mac is compatible also with UltraEdit v10.00 and later and maybe also lower versions of UE.
Note: None of the macros are designed to work with enabled configuration setting Automatically copy to clipboard when selection is made. I will not modify any macro in this package or in my other macro packages to work correct when this in my point of view useless feature is enabled which is horrible for all macros and scripts. I can only strongly recommend not to use this auto copy feature when using macros or scripts. Also most macros will not work correct with word-wrap enabled. Disable word-wrap before running any macro from the macro file.
- A macro code file with the source code of the example macros.
The UE / UES macro code file Mofis_Macro_Examples.uem contains the source code of the macros in the 2 macro files with lots of comments and at top of the file additional info how to setup UltraEdit or UEStudio to write macros in an edit window with all the great features of UE / UES like syntax highlighting, auto corrections, auto indent and re-indent existing macro code with a tab stop value individually specified for the file extension UEM for macro code files, macro commands tag list for quick help while editing, etc.
- A macro reference file written in HTML.
The help page Edit Macro command of UltraEdit v13.00 and UEStudio v6.20 has been greatly improved and I hope contains now no mistakes or missing commands/parameters anymore (at least in the English version). But the table layout is not good for reading and it contains no special hints or any version information. So I have written my own macro reference with a list layout which is hopefully better readable. It contains also some special hints, some info about known bugs and version information as far as I was able to get it.
- A syntax highlighting wordfile for UE / UES macros.
This file is hosted by IDM on their user-submitted wordfiles page. You can download it directly with the link above. Follow the instructions on the IDM download page to add the content of this word file to the word file you currently use.
- A macro commands tag list file for UE / UES macros.
This file is hosted also by IDM on their user-submitted tag files page. You can download it directly with the link above. Users of UltraEdit v13.00 or UEStudio v6.20 and later have a similar tag list for UE / UES macro commands already installed with the default taglist.txt / taglist.uet / taglistu.uet. In comparison with the tag list file on the download page the tag list in the default taglist*.* file is optimized for the version of UE / UES installed. Follow the instructions in the readme.txt at the tag list section on the download page or in Mofis_Macro_Examples.uem to add it to your current tag list file.
The macro reference file is not a guidance for "How to start writing macros" and it is not a manual for UltraEdit / UEStudio macros.
It is just a reference file with some additional hints, but certainly not a guidance for beginners. Learning by doing is the only method to become an UE / UES macro expert. Beginners should start with recording macros and then edit it a little and not try to write it directly as experts like I can do after years of practice.
THE MACRO SET IN THE PACKAGE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, STATUTORY OR OTHERWISE, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO USE, RESULTS AND PERFORMANCE OF THE MACRO SET IS ASSUMED BY YOU AND IF THE MACRO SET SHOULD PROVE TO BE DEFECTIVE, YOU ASSUME THE ENTIRE COST OF ALL NECESSARY SERVICING, REPAIR OR OTHER REMEDIATION. UNDER NO CIRCUMSTANCES, CAN THE AUTHOR BE HELD RESPONSIBLE FOR ANY DAMAGE CAUSED IN ANY USUAL, SPECIAL, OR ACCIDENTAL WAY OR BY THE MACRO SET.
You can download the package here. File to download is Mofis_Macro_Examples.zip.
If you have found a problem, or have suggestions, or feature requests, or additional info or just found a minor mistake, please reply to this thread and tell me.
It would be fine if a native English speaking and writing user with good grammar and spelling correction skills could read the entire macro code file, the reference file and this post and report me the mistakes.
In the macro reference file expanded the known bugs info of the commands GotoLine and GotoLineSelect. Made some other small changes mainly at top of the file. And last added appendix B - "Configuration options with influence on macro execution" - and appendix C - "History of this document".
In the macro reference file modified the known bug info for parameter Unicode of the commands FindInFiles and ReplInFiles. See history of the document for more details.
Updated the macro reference file because of new macro version introduced with UE v13.10 and UES v6.30 and some bugs are fixed by IDM as it is now documented too. See history of the document for details.
Updated the macro reference file by adding a new appendix about macro execution on files with active word-wrap, changed the CSS values to remove all fixed font size values and some other changes. See history of the document for details. The document uses now the base font size which the reader has specified in the browser settings.
The macros DelDupInfo+ and DelDupInfo- are rewritten to work also on a file with active word-wrap mode. Other macros are not tested or adapted. So best disable word-wrap mode if you want to use any other macro from my collection.
Updated the macro reference file because of fixes for serious bugs done by IDM for UE v13.20a and UES v6.40a.
Updated the macro reference file again; just a few new information, nothing really important.
Updated the macro reference file by adding the new commands and parameters introduced with UE v14.00 and UES v6.50 and made some other small changes. See history of the document for more details. Updated also the URLs in Mofis_Macro_Examples.uem and some other general info in the comments. The macros are not modified.
Updated the macro reference file again; just a new bug info.
Updated the macro reference file again; added new FindInFiles parameter DisplayLinesDoNotMatch available since UE v14.10 and UES v6.60 and modified 2 bug info because the bugs were fixed with UE v14.10 and UES v6.60.
Added to the macro reference file a new bug info. Updated the macro "Convert hhk/hhc" because it did not work for *.hhk and *.hhc files created with Microsoft HTML Help WorkShop or Help & Manual because of a slightly different format then *.hhk and *.hhc files created by other CHM creating applications like Adobe RoboHelp.
Revised the macro reference file because of new Find parameter AllFiles available since UE v14.20 and some other macro related changes in UE v14.20. See history of the document for more details.
Small update of the macro reference file because of new command name UltraEditReOn instead of UnixReOff. The syntax highlighting wordfile and the tag list file on IDM's server are also updated.
Small update of the macro reference file because of new command DelAllBookmarkLines and some other small changes. The syntax highlighting wordfile and the tag list file on IDM's server are also updated. Furthermore there are some small changes in some comments in the macro source code file and the macros have been improved a little bit for correct adding a line termination at end of a file with feature auto indent enabled and last line of the file contains preceding whitespace.
Updated the macro reference file with the info about new remove duplicate parameters of the commands SortAsc and SortDes introduced with UE v15.10 and some other changes including a new bug info.
Updated the macro reference file with the info about the new commands DecodeBase64 and EncodeBase64 and some other small changes including a new bug info about a macro recorder bug on command SelectAll.
Removed a wrong hint at command SaveAs.
Updated the macro reference file with the commands CommentAdd, CommentRemove, CommentSelectionAdd, CommentSelectionRemove and DelAllHiddenLines, the FindInFiles and ReplInFiles parameter UseEncoding and other stuff related to changes in UltraEdit v16.00. See history in the macro reference file for details.
Improved the macro "Convert hhk/hhc" because the result HTML file for the index file looked different to the list on the Index tab. In other words the conversion to HTML was not really good for *.hhk files. And added some code to get correct HTML file if the input file contains also </li> after </object> and if all <ul> and <li> tags are at start of the line. Furthermore the previous macro version converted also backslashes in visible text to slashes instead of doing that only inside the URLs. This is also fixed.
Updated the macro reference file with information about new macro commands introduced with UE v17.20 and v17.30 and some other changes in this file. See history of the document for details.
Updated the macro reference file with information about new macro commands introduced with UE v18.20. See history of the document for details.
Updated the macro reference file with a more detailed description for command GotoBookMark and updated respectively corrected also the descriptions of the other 3 bookmark commands.