Anzio Frequently Asked Questions - Keyboard remapping, macros and scripting

Anzio Lite does not support any keyboard remapping, macros or scripting of any type. While it may respond to some functions and commands sent from the host or from another AnzioWin keymap, these are very limited and it cannot remap keys or build its own macros. To do this you would need AnzioWin.

Back to top

 

It is not uncommon for the host to generate a beep for certain events. Anzio Lite and AnzioWin both utilize the default sound settings in Windows. But what if you do not have speakers hooked up? You can go to Advanced Options and force Anzio to use the PC Speaker, rather than whatever default Windows has set. Check out our Sound Support page for more information. In early versions of AnzioWin and Anzio Lite, we added support for sound cards in those cases where there was not a PC speaker. In order to do this, we utilize some of the Windows Theme sounds. In Windows XP and later versions of Windows 2000, a sound for a theme may no longer exist in that theme. Look in "Advanced Options" under the Edit menu and see what the "Beep Type" is set for. If it is set for "400" or "440", and you are having problems with AnzioWin / Anzio Lite freezing or hanging up, try changing selecting a different sound.

Back to top

 

Version 12.5 and earlier of AnzioWin or Anzio Lite can play only WAVE (.wav) files. Version 12.6 and later add support for other formats. These are played using the PLAYSOUND or PLAYMEDIA commands, which can be issued from the host system See the Anzio manual, the README.TXT file, or contact us for more information.

Back to top

 

Version 12.5 or earlier of AnzioWin or Anzio Lite does not support these media file types. You could set up a macro in AnzioWin that would transfer the file and then launch it for Windows to handle. Starting with 12.6, the PLAYMEDIA command can play video as well as audio.

Back to top

 

The common problem here is that the currently loaded keys files does not match the current terminal type. Check under the "Communications" menu to see what Terminal Type you are set for. Then go to the "File" menu and do a "Read Keys" and select the corresponding keys file. Be sure to save defaults after this so that the proper keys will be loaded next time.

Another possible problem is that you need to remap a key or key sequence. This can be done with all Anzio products except Anzio Lite. Once a key is remapped, the key file can be used by Anzio Lite.

Back to top

 

User macros are done through AnzioWin. While Anzio Lite does not support remapping itself, if these are simple macros (no non-Anzio Lite commands), Anzio Lite can use macros set up by AnzioWin. So you would need at least one copy of AnzioWin to do the macros and then distribute the modified key file containing the macros to the Anzio Lite users.

Back to top

 

The problem is not usually AnzioWin in this case. The problem is the handling of backslashes by the shell you are running under for your operating system. Since backslashes have special meaning in most all shell strings, they have to be either escaped or handled special on input and output. Try something like the following (this may vary depending on your shell and scripting environment):

/usr/bin/printf "\034%s\035" "dir/s c: "
read -r file
printf "%s\n" "$file"
file="${file//\\/\\\\}"
/usr/bin/printf "%s\n" "$file"

The "-r" is necessary on the read to not strip the backslashes and if you need to redisplay the file name with just an echo or use it within other variables, the "file=..." string will escape the backslashes for you.

There are a couple of commands that will help in situations where you continue to have problems with backslashes.

First, you can set the default directory separator character (a backslash) to be something other than the Windows default with the "dir-separator" command.

/usr/bin/printf "\034%s\035" "dir-separator | "

You will then get back a file name with that character separating the path directories, i.e. c:|myfolder|myfile.pdf.

Additionally, when a dir/s, findfirst/s, findnext/s or other directory commands fail or are completed, they return, by default, a double-backslash, i.e. \\. This too can be difficult to work with on some hosts. So we have a command to adjust this as well, the "dir-terminator" command.

/usr/bin/printf "\034%s\035" "dir-terminator DONE "

In this example, instead of a double-backslash being returned when a directory command is complete (or fails), the word DONE will be returned.

More information can be found in the AnzioWin manual and whitepapers, as well as in the readme.txt file shipped with each version of AnzioWin.

Back to top

 

Keyboard remapping is done through AnzioWin. While Anzio Lite does not support remapping itself, it can use a remapped keys file. So you would need at least one copy of AnzioWin to do the remaps and then distribute the modified key file to the Anzio Lite users.

AnzioWin key remapping is done similar to setting up macros. See our various support documents and knowledgebase articles for more information.

Back to top