Code Folding and Bookmarks
The Macro Scheduler script editor supports various advanced editing features such as Code Folding and Bookmarks.
Code Folding
Recognised code blocks marked by the editor with a vertical line in the margin showing their extent, and a collapse/expand icon at the first line. You can collapse or expand the code block by clicking on this icon. Collapsing a block of code hides it temporarily from view.
You can also fold any code of your choice by placing the text CODEBLOCK and ENDCODEBLOCK before and after the code. E.g.:
CODEBLOCK
Run>Notepad.exe
WaitWindowOpen>Notepad.exe
Send>Hello World
ENDCODEBLOCK
Bookmarks
Bookmarks allow you to mark a line so that you can get back to it quickly. Right click on a line and select Create Bookmark. You will be prompted for the bookmark text to use and the bookmark will be created. An icon will appear in the gutter marking the code and the line will be highlighted. You can add as many bookmarks as you wish. To quickly get back to a line right click to invoke the context menu, or select the m,main Search menu and click Goto Bookmark. Choose the bookmark from the list.
Bookmarks are persistent. When you save your script the bookmarks are saved with it so that when the script is later reopened the bookmarks are reinstated.