home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 February / chip_20022115.iso / amiga / chiputil / alba.rea < prev    next >
Text File  |  2002-01-07  |  16KB  |  268 lines

  1. Short:        Lock your Amiga by a password ITA-ENG
  2. Author:       esseerre@lycos.it (Stefano Maria Regattin)
  3. Uploader:     esseerre@lycos.it (Stefano Maria Regattin)
  4. Version:      3.0
  5. Type:         util/boot
  6. Distribution: OK
  7.  
  8. Date: Friday, 14th December 2001
  9.  
  10. Name of the program: AlbaEng (english version of Alba)
  11. I have understood how work the commands DoCopSplit and ReDoCopSplit in Blitz2.
  12. I cannot say the same for the parameter NumCustoms of the command InitCopList.
  13. However the program do its job; it fades from black to skylight and viceversa.
  14. The main usage of the program is to avoid use of your Amiga by unauthorized
  15. people, locking your Amiga with an access password.
  16. The best place for it is in your S: drawer; type S:AlbaEng in the last line of
  17. your User-Startup to execute the program on every boot.
  18. The first time it is launched it asks the password (8 chars maximum length) and
  19. saves it in your S: drawer in the file named Password; the next time you boot
  20. your Amiga, it stops the execution of the User-Startup until you type the
  21. password you have previously saved.
  22. Don't worry if you forget the password; you can exclude the program activating
  23. the CapsLock (the key with the light) and then pressing the Help key when the
  24. password is asked.
  25. For a  strange reason, but fortunately good for the purpose of the program,
  26. contrary to it has been written on Blitz2 manual, the program reads and writes a
  27. file (Password) in BLITZ mode!
  28.  
  29. DON'T MODIFY YOUR USER-STARTUP BEFORE YOU ARE SURE THAT THE PROGRAM RUNS
  30. CORRECTLY ON YOUR AMIGA; TO TEST THE PROGRAM RUN IT BEFORE FROM WORKBENCH!
  31.  
  32. Few year ago I have damaged my 2 megs fast ram expansion and my Commodore Amiga
  33. 1200 trying to bring the fast ram from 2 to 4 megs by myself; now I have a new
  34. Amiga Technologies Amiga 1200 with the same fast ram expansion repaired and
  35. with 4 megs of memory.
  36. The unique problem is that the battery clock hasn't been repaired and it counts
  37. badly seconds; every time I boot my Amiga I have to adjust the time.
  38. For this reason and for the clock accidental resets after a crash, I have used
  39. the program DateCheck found on a coverdisk of an italian amiga magazine.
  40. Due several problems with this program, I have decided to add date checking to
  41. AlbaEng; now the program stores the boot date in the file named LastBootDate in
  42. your S: drawer; at the next boot it compares the current date with the
  43. previously saved date and, if the time distance from the two dates is over 1
  44. day, it launch the program SYS:Prefs/Time.
  45. Obviously you must have this program to correct the date, otherwise the
  46. correction will not have place.
  47. This program was written in Blitz2 on an Amiga 1200 but it should run on any
  48. Amiga; e-mail me if it don't run on your Amiga of if there are problems of any
  49. kind.
  50. I feel so stupid...the reason why the program before didn't run from workbench
  51. is that I had forgotten to insert the WBStartup command!
  52. I must admit that Alba don't run on my Amiga 500 v1.2, but I am not surrendered
  53. and at the moment I am trying to optimize the source code to permit to run Alba
  54. on my Amiga 500.
  55. Now the program accepts two parameters: ASKPASSOWRDCHANGE and DATECHECK; I
  56. think they are self-expliciting; they can be omitted if necessary.
  57. There are now three new parameters with their values, TOPCOLOUR, BOTTOMCOLOUR
  58. and TEXTCOLOUR to set the colours for the highest and the lowerst line of the
  59. screen for the colours fading and for the text; the values for all these must be
  60. specified as an hexadecimal number from 00 to FF for the red, the green and the
  61. blue components of the colours; now if all these three colours are the same, the
  62. text colour is inverted allowing the usage of the program.
  63. Now you can get random colours for each colour parameter specifing RANDOM
  64. instead of RRGGBB.
  65.  
  66. I am not responsible of any damage this program can occurs to your system; you
  67. use it at your own risk!
  68.  
  69. Versions history:
  70. Version 1.0 -> First release on Aminet.
  71. Version 1.1 -> Now you can go back in typing chars using backspace (the left
  72.                arrow little grey key).
  73. Version 1.2 -> Removed the bug of unlimited erroneous backspaces.
  74. Version 1.3 -> Now the program can be tested directly from workbench.
  75. Version 1.4 -> Added date check.
  76. Version 1.5 -> Now the program is compatible with NTSC Amigas.
  77. Version 1.6 -> Now this english version of the program runs properly on NTSC
  78.                Amigas.
  79. Version 1.7 -> Now date check works properly.
  80. Version 1.8 -> Now the colours fading appears correctly on not AGA Amigas, but
  81.                there is only a fixed fade.
  82. Version 1.9 -> Now the date check is disabled if there isn't the Time prog in
  83.                SYS:Prefs.
  84. Version 2.0 -> Removed a bug in date check.
  85. Version 2.1 -> Now the input text position height is correct either a PAL or a
  86.                NTSC screen is opened.
  87. Version 2.2 -> Added qualifier keys filter and ASKPASSWORDCHANGE and DATECHECK
  88.                parameters, and now the password can be saved from a text
  89.                editor.
  90. Version 2.3 -> Now the RIGHT-AMIGA key is recognized.
  91.              *******************************************************************
  92.              * Thanks to Michael Hendren for the suggestions that have brought *
  93.              * up to this version!                                             *
  94.              *******************************************************************
  95. Version 2.4 -> Now all the numpad keys are recognized.
  96.              *******************************************************************
  97.              * Thanks to Michael Hendren for the suggestions that have brought *
  98.              * up to this version!                                             *
  99.              *******************************************************************
  100. Version 2.5 -> Now you can type the (new) password with the qualifier keys
  101.                pressed.
  102.              *******************************************************************
  103.              * Thanks to Michael Hendren for the suggestions that have brought *
  104.              * up to this version!                                             *
  105.              *******************************************************************
  106. Version 2.6 -> Now you can set the colours for the screen colour fading as you
  107.                like by the parameters TOPCOLOUR and BOTTOMCOLOUR; if you leave
  108.                these out, the screen will be totally black!
  109. Version 2.7 -> Added the selection of the text colour by the parameter
  110.                TEXTCOLOUR.
  111. Version 2.8 -> Now the fading takes place for any combination of the red, the
  112.                green and the blue components of the two faded colours, not
  113.                only for the highest value (FF).
  114. Version 2.9 -> Now TEXTCOLOUR is inverted if specified and equal to both the
  115.                TOPCOLOUR and BOTTOMCOLOUR keywords.
  116. Version 3.0 -> Now you can specify RANDOM instead of RRGGBB to have a random
  117.                colour for TOPCOLOUR, BOTTOMCOLOUR and TEXTCOLOUR colour
  118.                parameters.
  119.  
  120. Note: if you want the source code of the program, make an international money
  121. order of 10 Euros payable to:
  122.  
  123. Stefano Maria Regattin
  124. piazza Pietro Gasparri, 4/U
  125. 20161 Milano Italia (Italy)
  126.  
  127. specifing that you want the source code of AlbaENG.
  128. At end see my home page on http://utenti.tripod.it/esseerre/Stefano.html.
  129. The following is the same text in italian:
  130.  
  131. Data: gioved∞, 14 dicembre 2001
  132.  
  133. Nome del programma: Alba
  134. Ho capito come funzionano i comandi DoCopSplit e ReDoCopSplit in Blitz2.
  135. Non posso dire lo stesso per il parametro NumCustoms del comando InitCopList.
  136. Comunque il programma fa il suo lavoro: fa la dissolvenza dal nero alla luce del
  137. cielo e viceversa.
  138. Lo scopo principale del programma Φ quello di impedire l'uso del vostro Amiga a
  139. persone non autorizzate, bloccando il vostro Amiga con una parola d'accesso.
  140. Il miglior posto per questo programma Φ nel vostro cassetto S:; digitate S:Alba
  141. nell'ultima linea della vostra User-Startup per eseguire il programma ad ogni
  142. boot.
  143. La prima volta che viene lanciato, il programma chiede la parola chiave (8
  144. caratteri massimo) e la salva nel vostro cassetto S: nel file chiamato
  145. ParolaChiave; nei boot successivi blocca l'esecuzione della User-Startup finchΘ
  146. non digitate la parola chiave precedentemente salvata.
  147. Non preoccupatevi se vi dimenticate la password; potete escludere il programma
  148. attivando il CapsLock (il tasto con la lucina) e premendo successivamente il
  149. tasto Help quando vi viene chiesta la parola chiave.
  150. Per qualche strana ragione, ma fortunatamente buona per lo scopo del programma,
  151. Φ che, diversamente da quanto Φ stato scritto sul manale di Blitz2, il programma
  152. legge e scrive un file (ParolaChiave) in modalita BLITZ!
  153.  
  154. NON MODIFICATE LA USER-STARTUP PRIMA DI ESSERE SICURI CHE IL PROGRAMMA GIRI
  155. CORRETTAMENTE; PER PROVARLO LANCIATELO PRIMA DAL WORKBENCH!
  156.  
  157. Qualche anno fa ho danneggiato la mia espansione di memoria fast da 2 mega ed il
  158. mio Amiga 1200 Commodore tentando di portare la memoria fast da 2 a 4 mega da
  159. solo; ora ho un nuovo Amiga 1200 di Amiga Technologies con la stessa espansione
  160. di memoria riparata e portata a 4 mega.
  161. L'unico problema Φ che l'orologio con la batteria tampone non Φ stato riparato e
  162. conta male i secondi; ogni volta che faccio il boot devo regolare l'ora.
  163. Per questa ragione e per gli azzeramenti dell'orologio dopo un crash del
  164. sistema, ho usato il programma DateCheck trovato su un dischetto di un
  165. numero di Amiga Magazine.
  166. Per vari problemi con questo programma, ho deciso di aggiungere il controllo
  167. della data ad Alba; ora il programma memorizza la data di boot nel file
  168. DataUltimoBoot nel vostro cassetto S:; al successivo boot confronta la data
  169. corrente con la data precedentemente salvata e, se la distanza tra le due date
  170. Φ di oltre un giorno, lancia il programma SYS:Prefs/Time.
  171. Ovviamente dovete avere questo programma per correggere la data, altrimenti la
  172. correzzione non avrα luogo.
  173. Questo programma Φ stato scritto in Blitz2 sul mio Amiga 1200 ma dovrebbe
  174. funzionare su qualsiasi Amiga; contattatemi per posta elettronica se cos∞ non
  175. fosse o per problemi di qualsiasi genere.
  176. Mi sento cos∞ stupido...la ragione per cui il programma prima non girava dal
  177. workbench Φ che avevo dimenticato di inserire il comando WBStartup!
  178. Devo ammettere che Alba non funziona sul mio Amiga 500 v1.2, ma io non mi sono
  179. arreso ed al momento sto ottimizzando il sorgente per permettere ad Alba di
  180. girare sul mio Amiga 500.
  181. Ora il programma accetta due parametri: ASKPASSWORDCHANGE e DATECHECK; io credo
  182. che siano autoesplicativi; per chi non sapesse l'inglese ASKPASSWORDCHANGE vuol
  183. dire CHIEDI SE SI VUOLE CAMBIARE LA PAROLA CHIAVE e DATECHECK vuol dire
  184. CONTROLLA LA DATA; questi parametri possono essere omessi se necessario.
  185. Ci sono ora tre nuovi parametri con i rispettivi valori, TOPCOLOUR, BOTTOMCOLOUR
  186. e TEXTCOLOUR, per impostare i colori per la linea piu' alta e per quella piu'
  187. bassa dello schermo per la dissolvenza dei colori e per il colore del testo; i
  188. valori per entrambi devono essere specificati come un numero esadecimale da 00 a
  189. FF per le componenti del rosso, del verde e del blu dei colori; ora se tutti
  190. questi tre colori sono identici tra loro, il colore del testo viene invertito
  191. per permettere l'utilizzo del programma.
  192. Ora potete ottenere dei colori a caso per ognuno dei tre parametri di colore
  193. specifcando RANDOM al posto di RRGGBB.
  194.  
  195. Non sono responsabile dei danni che questo programma pu≥ arrecare al vostro
  196. sistema; lo usate a vostro esclusivo rischio!
  197.  
  198. Storia delle versioni:
  199. Versione 1.0 -> Prima edizione su Aminet.
  200. Versione 1.1 -> Ora potete tornare indietro nella digitazione usando il tasto
  201.                 backspace (quello grigio piccolo con la freccia a sinistra).
  202. Versione 1.2 -> Risolto il problema dell'esecuzione senza limiti del tasto
  203.                 backspace.
  204. Versione 1.3 -> Ora il programma pu≥ essere testato direttamente dal workbench.
  205. Versione 1.4 -> Aggiunto il controllo della data.
  206. Versione 1.5 -> Ora il programma Φ compatibile con gli Amiga NTSC
  207. Versione 1.6 -> Ora la versione inglese del programma funziona correttamente
  208.                 sugli Amiga NTSC.
  209. Versione 1.7 -> Ora il controllo della data funziona appropriatamente.
  210. Versione 1.8 -> Ora la sfumatura di colori appare correttamente anche sugli
  211.                 Amiga non AGA, ma la sfumatura Φ fissa.
  212. Versione 1.9 -> Ora il contollo della data non viene eseguito se non c'Φ il
  213.                 programma Time in SYS:Prefs.
  214. Versione 2.0 -> Rimosso un baco nel controllo della data.
  215. Versione 2.1 -> Ora l'altezza  del testo di input Φ corretta sia che venga
  216.                 aperto uno schermo PAL od uno schermo NTSC.
  217. Versione 2.2 -> Aggiunto il filtro per i tasti qualificatori ed i parametri
  218.                 ASKPASSWORDCHANGE e DATECHECK.
  219.               *****************************************************************
  220.               * Grazie a Michael Hendren per i suggerimenti che hanno portato *
  221.               * a questa versione!                                            *
  222.               *****************************************************************
  223. Versione 2.3 -> Ora il tasto AMIGA-DESTRO viene riconosciuto.
  224.               *****************************************************************
  225.               * Grazie a Michael Hendren per i suggerimenti che hanno portato *
  226.               * a questa versione!                                            *
  227.               *****************************************************************
  228. Versione 2.4 -> Ora vengono riconosciuti anche tutti i tasti del tasterino
  229.                 numerico.
  230.               *****************************************************************
  231.               * Grazie a Michael Hendren per i suggerimenti che hanno portato *
  232.               * a questa versione!                                            *
  233.               *****************************************************************
  234. Versione 2.5 -> Ora potete digitare la (nuova) parola chiave tenendo premuti i
  235.                 Tasti qualificatori.
  236.               *****************************************************************
  237.               * Grazie a Michael Hendren per i suggerimenti che hanno portato *
  238.               * a questa versione!                                            *
  239.               *****************************************************************
  240. Versione 2.6 -> Ora potete scegliere i colori per la dissolvenza di colori dello
  241.                 schermo come preferite grazie ai parametri TOPCOLOUR e
  242.                 BOTTOMCOLOUR; se voi li omettete, lo schermo sarα completamente
  243.                 nero!
  244. Versione 2.7 -> Aggiunta la selezione del colore del testo grazie al parametro
  245.                 TEXTCOLOUR.
  246. Versione 2.8 -> Ora la dissolvenza ha luogo per qualsiasi combinazione delle
  247.                 componenti del rosso, del verde e del blu dei due colori, non
  248.                 solo per il valore piu' alto (FF).
  249. Versione 2.9 -> Ora il colore del testo TEXTCOLOUR viene invertito se
  250.                 specificato ed uguale ad entrambi i colori TOPCOLOUR e
  251.                 BOTTOMCOLOUR.
  252. Versione 3.0 -> Ora potete specificare RANDOM al posto di RRGGBB per avere dei
  253.                 colori casuali per i parametri di colore TOPCOLOUR, BOTTOMCOLOUR
  254.                 e TEXTCOLOUR.
  255.  
  256. Nota: se volete il sorgente del programma, fate un vaglia ordinario di 10 Euro
  257. pagabile a:
  258.  
  259. Stefano Maria Regattin
  260. piazza Pietro Gasparri, 4/U
  261. 20161 Milano Italia (Italy)
  262.  
  263. specificando che volete il sorgente di Alba.
  264. Per finire guardate la mia pagina su
  265. http://utenti.tripod.it/esseerre/Stefano.html.
  266.  
  267. Ciao!
  268.