|Home » Products » UltraEdit/UEStudio » Getting Started|
Scripting Demo and Tutorial
Article Number: 1244 | Last Updated: Thu, Oct 20, 2011 3:33 PM
For a short scripting tutorial please click here.
The hello.js script demonstrates the simplest form of script supported - a single line script that writes to the active file:
To invoke this script please go to Scripting in the Advanced menu and click on the Scripts... item in the submenu. This will present the Scripting configuration dialog. If you press the Add button and navigate to the "scripts" directory below the installation directory you may add " hello.js" to the list of scripts available to be run. You may assign a hotkey to the script by clicking in the Hotkey field and pressing the desired keys. Scripts that are added will be dynamically updated in the bottom of the Scripts... submenu referenced above and may be invoked through hotkeys or by clicking on the script name in this list.
To be fully self-contained this script actually creates a new Edit document to write to and the script may be run without opening any documents.
The stringvar.js script shows the ability to capture user input and store it in variables for later use in the script:
This may be invoked as described above for the hello.js script. To run this demo, please open any text file and specify the string you wish to search for and the number of occurrences you wish to find. The script will then open a new document and write the specified number of matching lines to the new file.
For information regarding the commands supported for scripting, please see the Scripting commands Help topic.
There are no attachments for this article.
Viewed 5674 times since Thu, Oct 20, 2011
Inserting Special Characters
Viewed 5104 times since Thu, Oct 13, 2011
Home and End keys (Cursor Movement)
Viewed 5032 times since Thu, Oct 13, 2011
Viewed 6964 times since Thu, Oct 13, 2011
Page Up & Page Down keys (Cursor Movement)
Viewed 3950 times since Thu, Oct 13, 2011
File Tree View Interface
Viewed 11591 times since Thu, Oct 13, 2011
Viewed 4459 times since Thu, Oct 20, 2011
Debugging PHP Scripts
Viewed 4940 times since Thu, Oct 13, 2011
Viewed 4737 times since Thu, Oct 13, 2011
Blocking Text / Column Mode
Viewed 5159 times since Thu, Oct 13, 2011