home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 083.lha / PrefChange / prefchng.doc < prev    next >
Text File  |  1986-11-20  |  3KB  |  43 lines

  1. I have been running an Amiga 1000 since Jan '86, and for the past 6 months I have
  2. had two printers connected to the beast.  My Epson does straight text just fine,
  3. and my Xerox 4020 does color ->BEAUTIFULLY<-.  But neither one likes to see the
  4. control codes for the other!   They get very pouty about it.  I have a switch box
  5. that flips between them and Digi-View and A-Time, but I had no way to switch
  6. Preferences settings, except by using Preferences... Worst of all, it isn't
  7. obvious which way the setting is, unless I go back to Preferences...  I solved
  8. the problem by writing a short routine to capture the current Preferences values
  9. and save them under a meaningful name - something better than
  10. "system-configuration".  One set is named "Epson", another is called "Xerox". 
  11. Each has a different pointer to indicate the version which is active.  If my wife
  12. likes a different color scheme on screen, I will add an icon called "Marsha"...
  13.  
  14. The arc file contains source and object, plus an example icon and this doc file.
  15. There is also an "Execute.Me" file which will install the sample in the Devs:
  16. directory for you. Execute it before trying the "Sample" icon.  To use it just
  17. double-click the icon.  To use the regular programs just set up the preferences
  18. you want (select "USE" rather than "SAVE", so you won't disturb your defaults),
  19. then use the CLI to run the program "SavePrefs" with a meaningful name to
  20. describe the settings you have set up temporarily.  (i.e. "SavePrefs
  21. SantaPointer", if you are saving a version with a custom Santa pointer).  This
  22. will generate a file in Devs: called SantaPointer.  Next, bring up a drawer
  23. containing the sample icon provided.  Use Workbench to copy it, then to rename
  24. the copy "SantaPointer", or whatever you called the Preferences values.  Now just
  25. double-click the new icon anytime you want that Preferences setting!.  You can
  26. have as many different icons as you want, as long as they have different names. 
  27. The program SetPrefs is also provided. (This is actually the code called "sample"
  28. in the example, but it is renamed in each case to provide the meaningful name...)
  29. This is for use directly from the CLI, or from batch files.  Just enter "SetPrefs
  30. SantaPointer" or whatever name you have called your desired Preference.
  31.  
  32. I hope this is useful, I can't guarantee it, of course, but stretch your
  33. imaginations!  8^)
  34.  
  35.                                            David W. Nipper
  36.                                            826 N. Montezuma
  37.                                            Tucson, AZ 85711
  38.  
  39.                                            (602)881-4851
  40.                                            CompuServe 75756,1645
  41.  
  42.  
  43.