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 >
Text File  |  1991-12-18  |  6KB  |  144 lines

  1. How do I get my old function Keys to work with V12?  
  2.                     [OR]           
  3. How can I call the Printer menu from a function key in V12?
  4.                     [OR]
  5. How do you access standard function keys from User Defined
  6. function keys in V12?
  7.  
  8.  
  9. "With TeleMagic V12, there have been some major advances in the logic used
  10. for the function keys.  You can now call any of the Standard Function Keys
  11. used in TeleMagic (F1-F9) with any of the User Definable Function Keys!  
  12. This allows your function keys to be MUCH more flexible and requires only
  13. slight modifications to a few of your old keys."
  14.  
  15. "To call a standard function key from a user defined function key, you will
  16. need to start your function key with an `&' because we will be using a
  17. dBase expression.  The expression we will use is `F_KEY', where the _ is
  18. replaced  with the number of the function key you want to call.  For
  19. example:
  20.  
  21.                          &F6KEY+"d6x"
  22.  
  23. would call the Printer Menu (`F6'), change print direction (`D') to PRN 
  24. (`6'), and to exit back to the Main Menu (`X').
  25.  
  26.  
  27. GUIDELINES
  28. -----------
  29.      1. If the function key will contain a Dbase expression, it must start
  30.         with an `&' as the first character of the function key.
  31.  
  32.      2. If the function key starts with an `&', then any keystrokes that
  33.         are not part of a Dbase expression, must be enclosed in double     
  34.         quotes (").
  35.  
  36.  
  37. CHANGING OLD FUNCTION KEYS
  38. --------------------------
  39.      If you had any old function keys that accessed the Printout Menu there
  40. is a good chance they will need to be updated.  
  41.  
  42. An example of this would be the old function key you used to print envelops
  43. on a laser printer.  The old function key looked like this:
  44.  
  45.      pcchr(27)+"&l1O"+chr(27)+"l3H";fhpenv;pcchr(27)+"E";x
  46.  
  47.  
  48. The V12 function key would look like this:
  49.  
  50.    &F6KEY+"cchr(27)+'&l1O'+chr(27)+'&l3H';xpfhpenv;"+F6KEY+"cchr(27)+'E';x"
  51.  
  52.  
  53. WHAT THE NEW KEY DOES
  54. ---------------------
  55.      1. The new key starts with an & because it will be using the Dbase  
  56.         routine F6KEY to access the F6.
  57.  
  58.      2. The literal keystroke `P' (which called the Printout Menu in the 
  59.         old version) has been replaced with `F6KEY'.  This will bring up 
  60.         the Printer Menu in V12.
  61.      
  62.     Note: In V12 use the Printer Menu (F6) for the following things:
  63.                Changing direction of output
  64.                Selecting a printer
  65.                Accessing the print Queue
  66.                Printing a file (does not merge in fields)
  67.                Sending printer control codes
  68.  
  69.           Use the Printout Menu (`P' from a contact record) when you want  ì
  70.         to print any of the following for a single contact:
  71.                Merged formletters
  72.                Labels 
  73.                Envelops
  74.                All Data
  75.                Notepads
  76.  
  77.  
  78.      3. The `+' following `F6KEY' is a way to add parts of a function      
  79.         key together. For instance, two dBase commands can be joined       ì
  80.  together or dBase commands can be joined with groups of keystrokes        ì
  81. (the keystrokes must be enclosed inside of double quotes (" ").
  82.  
  83.      4. The first double quote (")  tells TeleMagic that the starting with
  84.         the next character, everything is to be treated as if it was an    
  85.         actual TeleMagic keystroke.
  86.  
  87.      5. The first `c' would select `Control Printer' from the Printout   
  88.         Menu. 
  89.  
  90.      6. Now the function key would type in the following printer control 
  91.         codes:
  92.                    chr(27)+'&l1O'+chr(27)+'l3H'
  93.  
  94.    NOTE:  Notice that we have replaced the double quotes (") that were
  95.           in the printer control codes with single quotes (').   Most
  96.           printers will accept either one.  If you are using printer     
  97.           control codes inside of a function key that is going to          
  98.           access ANY Dbase expression, you must use single quotes.  The    
  99.           reason for this is that in a function key which starts with an   
  100.           `&' (i.e. a function key that is going to contain Dbase          
  101.           expression), TeleMagic takes anything that is between two double 
  102.           quotes (") as literal keystrokes. 
  103.  
  104.  
  105.      7. The  semicolon (;) is the same as touching <ENTER> and  the `X'    
  106.         removes the Printer Menu from the screen placing you back at the   
  107.         contact record. 
  108.  
  109.      8. The `P' brings up the new Printout Menu, `F' selects the      
  110.         `Formletter' option, and `hpenv;' types in the name of the         
  111.         file you want to print and simulates touching the <ENTER>          
  112.         key.
  113.  
  114.      9. The second double quote (") lets TeleMagic know that we finished   
  115.         with the TeleMagic keystrokes we want it to simulate (at least for 
  116.         a moment!).
  117.  
  118.     10. The next `+' tells TeleMagic that another command is coming.  The
  119.         `F6Key' calls the Dbase routine that access the <F6> key to bring  
  120.         up the Printer Menu again.  Do not put an `&' before `F6KEY'!  You 
  121.         only need to have one `&' at the very beginning of the function    
  122.         key!
  123.  
  124.     11. Now the function key will execute some more literal keystrokes and
  125.         we let the function key know what by enclosing them inside        a
  126.         set of double quotes ("  ").  These keystrokes will select the     
  127.         `Control Printer ' option off the Printer Menu, then insert      
  128.         `chr(27)+'E'in the field (to reset the printer back to it's        
  129.         default settings), the semi-colon simulates touching the <ENTER>   
  130.         key, and the `X" escapes back to the contact record.
  131.  
  132.  
  133. (End of 552)
  134. New 09-13-91 MLM
  135.  
  136. Indexed under: E   Envelops w/ Fkeys in V12
  137.                F   Calling a Function Key with a Function Key (V12)
  138.                    Function Keys, Converting to V12
  139.                      Function Keys in V12
  140.                V   Function keys, converting to V12
  141.                    V12 Function Keys
  142.  
  143.  
  144.