home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware 1 2 the Maxx
/
sw_1.zip
/
sw_1
/
TEXT
/
TM12_TIP.ZIP
/
552.TXT
< prev
next >
Wrap
Text File
|
1991-12-18
|
6KB
|
144 lines
How do I get my old function Keys to work with V12?
[OR]
How can I call the Printer menu from a function key in V12?
[OR]
How do you access standard function keys from User Defined
function keys in V12?
"With TeleMagic V12, there have been some major advances in the logic used
for the function keys. You can now call any of the Standard Function Keys
used in TeleMagic (F1-F9) with any of the User Definable Function Keys!
This allows your function keys to be MUCH more flexible and requires only
slight modifications to a few of your old keys."
"To call a standard function key from a user defined function key, you will
need to start your function key with an `&' because we will be using a
dBase expression. The expression we will use is `F_KEY', where the _ is
replaced with the number of the function key you want to call. For
example:
&F6KEY+"d6x"
would call the Printer Menu (`F6'), change print direction (`D') to PRN
(`6'), and to exit back to the Main Menu (`X').
GUIDELINES
-----------
1. If the function key will contain a Dbase expression, it must start
with an `&' as the first character of the function key.
2. If the function key starts with an `&', then any keystrokes that
are not part of a Dbase expression, must be enclosed in double
quotes (").
CHANGING OLD FUNCTION KEYS
--------------------------
If you had any old function keys that accessed the Printout Menu there
is a good chance they will need to be updated.
An example of this would be the old function key you used to print envelops
on a laser printer. The old function key looked like this:
pcchr(27)+"&l1O"+chr(27)+"l3H";fhpenv;pcchr(27)+"E";x
The V12 function key would look like this:
&F6KEY+"cchr(27)+'&l1O'+chr(27)+'&l3H';xpfhpenv;"+F6KEY+"cchr(27)+'E';x"
WHAT THE NEW KEY DOES
---------------------
1. The new key starts with an & because it will be using the Dbase
routine F6KEY to access the F6.
2. The literal keystroke `P' (which called the Printout Menu in the
old version) has been replaced with `F6KEY'. This will bring up
the Printer Menu in V12.
Note: In V12 use the Printer Menu (F6) for the following things:
Changing direction of output
Selecting a printer
Accessing the print Queue
Printing a file (does not merge in fields)
Sending printer control codes
Use the Printout Menu (`P' from a contact record) when you want ì
to print any of the following for a single contact:
Merged formletters
Labels
Envelops
All Data
Notepads
3. The `+' following `F6KEY' is a way to add parts of a function
key together. For instance, two dBase commands can be joined ì
together or dBase commands can be joined with groups of keystrokes ì
(the keystrokes must be enclosed inside of double quotes (" ").
4. The first double quote (") tells TeleMagic that the starting with
the next character, everything is to be treated as if it was an
actual TeleMagic keystroke.
5. The first `c' would select `Control Printer' from the Printout
Menu.
6. Now the function key would type in the following printer control
codes:
chr(27)+'&l1O'+chr(27)+'l3H'
NOTE: Notice that we have replaced the double quotes (") that were
in the printer control codes with single quotes ('). Most
printers will accept either one. If you are using printer
control codes inside of a function key that is going to
access ANY Dbase expression, you must use single quotes. The
reason for this is that in a function key which starts with an
`&' (i.e. a function key that is going to contain Dbase
expression), TeleMagic takes anything that is between two double
quotes (") as literal keystrokes.
7. The semicolon (;) is the same as touching <ENTER> and the `X'
removes the Printer Menu from the screen placing you back at the
contact record.
8. The `P' brings up the new Printout Menu, `F' selects the
`Formletter' option, and `hpenv;' types in the name of the
file you want to print and simulates touching the <ENTER>
key.
9. The second double quote (") lets TeleMagic know that we finished
with the TeleMagic keystrokes we want it to simulate (at least for
a moment!).
10. The next `+' tells TeleMagic that another command is coming. The
`F6Key' calls the Dbase routine that access the <F6> key to bring
up the Printer Menu again. Do not put an `&' before `F6KEY'! You
only need to have one `&' at the very beginning of the function
key!
11. Now the function key will execute some more literal keystrokes and
we let the function key know what by enclosing them inside a
set of double quotes (" "). These keystrokes will select the
`Control Printer ' option off the Printer Menu, then insert
`chr(27)+'E'in the field (to reset the printer back to it's
default settings), the semi-colon simulates touching the <ENTER>
key, and the `X" escapes back to the contact record.
(End of 552)
New 09-13-91 MLM
Indexed under: E Envelops w/ Fkeys in V12
F Calling a Function Key with a Function Key (V12)
Function Keys, Converting to V12
Function Keys in V12
V Function keys, converting to V12
V12 Function Keys