The script editor is a specialized text editor with script entry support, as a color highlight of the code nad the
Key shortcuts
Key shortcuts for moving the cursor:
Note: If you move the cursor by the key shortcut together with the
Shift key, then the cursor moves and the text is marked at the same time.
- <left key>: cursor one character left
- <right key>: cursor one character right
- <up key>: cursor one line up
- <down key>: cursor one line down
- <Home>: cursor at the beginning of line
- <End>: cursor at the end of line
- <PageUp>: cursor one page back
- <PageDown>: cursor one page forward
- <Ctrl-Left>: cursor one word back
- <Ctrl-Right>: cursor one word forward
- <Ctrl-Home>: cursor at the beginning of page
- <Ctrl-End>: cursor at the end of page
- <Ctrl-PageUp>: cursor at the beginning of the whole script
- <Ctrl-PageDown>: cursor at the end of the whole script
Other key shortcuts:
- <Ctrl-W>: Script wizard
- <Ctrl-S>: (Save) Save edited script
- <Ctrl-F>: (Find) Search for the appearance(s) of selected or entered text in the script
- <Ctrl-H> or <Ctrl-R>: (Replace) Replaces the found text with another in the script
- <Ctrl-Z> or <Ctrl-Backspace>: (Undo) Undo the last edit action
- <Ctrl-Y>: (Redo) Redo the edit action cancelled by Undo
- <F1>: Displays the PROMOTIC documentation
- <F3>: Search for the next occurrence of the last searched text (without the search window)
- <F11>: Displays fullscreen editor
- <Ctrl-C> or <Ctrl-Ins>: Copies the selected text into the Windows clipboard
- <Ctrl-V> or <Shift-Ins>: Inserts the text from the Windows clipboard to the selected position
- <Ctrl-X>: Cuts the selected text and puts it into the Windows clipboard
- <Ctrl-P>: Print the script with printer selection window
- <Tab>: Shifts the selected block to the right
- <Shift-Tab>: Shifts the selected block to the left
- <Ctrl-[+]>: Increase the font size in editor
- <Ctrl-[-]>: Decrease the font size in editor
- <Esc>: If the editor runs in fullscreen mode, then it is switched into normal mode.
Script editor local menu
-
Canvas editor ... (Ctrl+L, Ctrl+E): Opens graphic editor for the
PmgCanvas object.
-
Test script (Ctrl+L, Ctrl+T): Runs the script syntax check (i.e. it checks the algorithm written in this editor). It will run only the basic check of the
VBScript syntax. This test is not checking the existence of objects, methods, properties, variables, etc.
-
Comment block (Ctrl+L, Ctrl+C): Comment char is inserted at the beginning of each marked line of the block. See
VBScript statement
Rem.
- Uncomment block (Ctrl+L, Ctrl+U): Comment char is removed from beginning of each marked line of the block (if there is no comment char, then nothing happens)
- Shift block right (Tab): Shifts the selected block to the right
- Shift block left (Shift+Tab): Shifts the selected block to the left
- Find ... (Ctrl+F): Search for the appearance(s) of selected or entered text in the script
- Replace ... (Ctrl+H): Replaces the found text with another in the script
- Go to row ... (Ctrl+G): Moves the text cursor to the beginning of the selected line.
- Cut (Ctrl+X): Cuts the selected text and puts it into the Windows clipboard
- Copy (Ctrl+C): Copies the selected text into the Windows clipboard
- Paste (Ctrl+V): Inserts the text from the Windows clipboard to the selected position
- Undo (Ctrl+Z): Undo the last edit action
- Redo (Ctrl+Y): Redo the edit action cancelled by Undo
- Turn on full screen mode (F11): Displays fullscreen editor
- Print ... (Ctrl+P): Print the script with printer selection window
- Help: Displays the PROMOTIC documentation