All 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

 

There are two options here.

If the print file has printer-specific escape sequences in the file, Print Wizard will pass this directly to the printer without trying to format or auto-fit any portion of the print job. So you need do nothing in this case.

If the print file contains control sequences and tag printing that Print Wizard does not see as printer-specific codes, you can still print direct to the printer by including the command-line switch to print to the spooler or to print raw:

/vlevel=spooler       or       /vlevel=raw
Back to top

 

PWML, Print Wizard Markup Language, can be added to the beginning of any file directly in the data stream or by specifying a PWML print "init" file. Print "init" files can be specified in a print profile file as well, or can be referenced on the command-line for the Print Wizard engine to use:

C:\Program files\Printwiz30\printwiz.exe /vinit=myinit.txt myfiletoprint
Back to top

 

It is possible to script all uses of the Print Wizard engine such that the user does not know what is happening.

  • From your own application or user script, you could set up Print Wizard to run multiple times against the same file, simply by preserving the file between runs.
  • You could set a script up that runs Print Wizard once to format a file to a specific type, such as creating a PCL file, then use Print Wizard to reprint it, fax it, email it, etc.
  • From the PWLPD or PWListen program, you could run a script upon receiving the file that would manipulate the file and output it to numerous sources (set up a Custom Program for output).
  • From a Print Wizard print profile, you can define a "By Custom" profile that actually ran a script that runs the Print Wizard engine several times instead of once for the file specified.

There are lots of options here. Call if you have a specific need.

Back to top

 

The Print Wizard engine is designed to be fully functional through the use of print profiles and command-line switches.

  • You can run Print Wizard through a shell execute or Exec command. With the "/q" command-line switch to prevent any dialogs from appearing and will return error codes to the hosting application.
  • You can run Print Wizard from a file association by specifying a specific extension as being printed with Print Wizard (see the Print Wizard manual on setting it up as a File Association). Then you simply start the file through a shell execute or Exec command.
  • You can include Print Wizard in a script that runs from your program, returning an error code if the print job should fail.
  • You can run the Print Wizard DLL, calling the various methods exposed to allow Print Wizard to handle all your printing needs.
  • You can run the Print Wizard ActiveX module from your program. WePO exposes a subset of the Print Wizard calls, allowing you to use it in your .NET or Windows application.

At present, Print Wizard does not support COM or DDE directly. We are working on this for the future. If you have any need let us know.

Back to top

 

Yes. All of the Print Wizard engine functionality can be run from within a script. With the "/q" command-line switch for quiet-mode, Print Wizard will display no dialogs, but will return error codes. See the Print Wizard manual for a complete list of error codes returned.

Back to top

 

The Print Wizard DLL is designed to interact with the many features of Print Wizard through program calls. These program calls are made by your own Windows program or script and result in Print Wizard doing all the print work for you. Check out our documentation on Using the Print Wizard DLL.

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