The Xtend IVR Editor is designed and developed exclusively for writing IVR Scripts. The editor is very similar to the Microsoft Wordpad. You can either write scripts from scratch or you can load a script template and modify it.
A window appears with all the available templates; choose from among them and click OK to load a new script. It is possible for you to customise as well as add into this template list. It is as simple as dropping the new template script into your “XIVR\Templates” directory.
Since all editing operations are similar to Wordpad, here we attempt to discuss only the new features that support the IVR scripting.
Play Wave Files
When using the play command, position the cursor on any ".wav" file and press the Play button to play back that file. The play is asynchronous and will continue in the background. You can press <Shift> + ESC key to stop the play.
You can run multiple wave files using a single Play command. If the wave file is missing in the current directory, it will check the script directory also before reporting the error.
Locating Errors from Compile Window
When you submit the script to Xtend IVR daemon, it will compile the script and report the error messages, if any, in a small window with the line number.
You can double click on these lines to force the editor to position the caret exactly on the line where the error has occurred. After correcting all the errors, click OK. Then Xtend IVR recompiles the script and starts execution.
Goto Specified Line
While handling big scripts, you may feel it difficult to go to a particular line by pressing PageUp and PageDown keys. But if you know the line number, you can press CTRL+G.
It will bring a small dialog box in which you can type the
line number. If the line number is bigger than the last number, it
positions the caret at the bottom of the file.
Note: The line number is given on the status bar.
While handling big scripts, if the developer has to zigzag between 'called functions' and 'calling functions' or refer a statement often, then he can mark that line or statement as Bookmark by positioning the cursor at that line and pressing Ctrl + F2 or 'Bookmark' button in the toolbar.
Bookmark is an Edit option. After reference, press Shift + F2 or click 'Jump to Bookmark' to return to the previous place marked as bookmark. We can remove all bookmarks by pressing Ctrl + shift + F2 or 'Remove all Bookmarks' button in the toolbar.
When Goto Bookmark is enabled it jumps to the bookmarked position. This is used to move from one position to another, i.e. if you are performing a particular task in one position and wish to go to the starting of the script and later return to the original position, then select Bookmark in the current position and move up. Whenever you wish to return to the previously marked location, select Goto Bookmark or use hotkeys Shift+F2.
Compile & Run
The source code developed has to be checked for errors and bugs. It is at this stage, the code is linked with header files in the library. Click the Compile tool in the toolbar to compile the code. During compilation, the compiler looks for syntactic and semantic errors which are listed in the output window. On successful compilation, the code is now ready for execution.
The developer has the facility to execute the program from the editor, immediately after creation,
without loading the application or installing HASP. Click the Run tool to execute the program.
Thus, the effort the developer has to exert is reduced considerably.