Short: Lock your Amiga with a password ITA-ENG Author: stefano.regattin@tin.it (Stefano Regattin) Uploader: stefano.regattin@tin.it (Stefano Regattin) Version: 2.5 Type: util/boot Distribution: OK Date: Thursday, 15th February 2001 Name of the program: AlbaEng (english version of Alba) I have understood how work the commands DoCopSplit and ReDoCopSplit in Blitz2. I cannot say the same for the parameter NumCustoms of the command InitCopList. However the program do its job; it fades from black to skylight and viceversa. The main usage of the program is to avoid use of your Amiga by unauthorized people, locking your Amiga with an access password. The best place for it is in your S: drawer; type S:AlbaEng in the last line of your User-Startup to execute the program on every boot. The first time it is launched it asks the password (8 chars maximum length) and saves it in your S: drawer in the file named Password; the next time you boot your Amiga, it stops the execution of the User-Startup until you type the password you have previously saved. Don't worry if you forget the password; you can exclude the program activating the CapsLock (the key with the light) and then pressing the Help key when the password is asked. For a strange reason, but fortunately good for the purpose of the program, contrary to it has been written on Blitz2 manual, the program reads and writes a file (Password) in BLITZ mode! DON'T MODIFY YOUR USER-STARTUP BEFORE YOU ARE SURE THAT THE PROGRAM RUNS CORRECTLY ON YOUR AMIGA; TO TEST THE PROGRAM RUN IT BEFORE FROM WORKBENCH! Few year ago I have damaged my 2 megs fast ram expansion and my Commodore Amiga 1200 trying to bring the fast ram from 2 to 4 megs by myself; now I have a new Amiga Technologies Amiga 1200 with the same fast ram expansion repaired and with 4 megs of memory. The unique problem is that the battery clock hasn't been repaired and it counts badly seconds; every time I boot my Amiga I have to adjust the time. For this reason and for the clock accidental resets after a crash, I have used the program DateCheck found on a coverdisk of an italian amiga magazine. Due several problems with this program, I have decided to add date checking to AlbaEng; now the program stores the boot date in the file named LastBootDate in your S: drawer; at the next boot it compares the current date with the previously saved date and, if the time distance from the two dates is over 1 day, it launch the program SYS:Prefs/Time. Obviously you must have this program to correct the date, otherwise the correction will not have place. This program was written in Blitz2 on an Amiga 1200 but it should run on any Amiga; e-mail me if it don't run on your Amiga of if there are problems of any kind. I feel myself so stupid...the reason why the program before didn't run from workbench is that I had forgotten to insert the WBStartup command! I must admit that Alba don't run on my Amiga 500 v1.2, but I am not surrendered and at the moment I am trying to optimize the source code to permitto run Alba on my Amiga 500. I am not responsible of any damage this program can occurs to your system; you use it at your own risk! Now the program accepts two parameters: ASKPASSOWRDCHANGE and DATECHECK; I think they are self-expliciting; they can be omitted if necessary. Versions history: Version 1.0 -> First release on Aminet. Version 1.1 -> Now you can go back in typing chars using backspace (the left arrow little grey key). Version 1.2 -> Removed the bug of unlimited erroneous backspaces. Version 1.3 -> Now the program can be tested directly from workbench. Version 1.4 -> Added date checking. Version 1.5 -> Now the program is compatible with NTSC Amigas. Version 1.6 -> Now this english version of the program runs properly on NTSC Amigas. Version 1.7 -> Now date check works properly. Version 1.8 -> Now the colours fading appears correctly on not AGA Amigas, but there is only a fixed fade. Version 1.9 -> Now the date checking is disabled if there isn't the Time prog in SYS:Prefs. Version 2.0 -> Removed a bug in date check. Version 2.1 -> Now the input text position height is correct either a PAL or a NTSC screen is opened. Version 2.2 -> Added qualifier keys filter and ASKPASSWORDCHANGE and DATECHECK parameters, and now the password can be saved from a text editor. Version 2.3 -> Now the RIGHT-AMIGA key is recognized. ******************************************************************* * Thanks to Michael Hendren for the suggestions that have brought * * up to this version! * ******************************************************************* Version 2.4 -> Now all the numpad keys are recognized. ******************************************************************* * Thanks to Michael Hendren for the suggestions that have brought * * up to this version! * ******************************************************************* Version 2.5 -> Now you can type the (new) password with the qualifier keys pressed. ******************************************************************* * Thanks to Michael Hendren for the suggestions that have brought * * up to this version! * ******************************************************************* Note: if you want the source code of the program, make an international money order of 10 Euros payable to: Stefano Regattin piazza Pietro Gasparri, 4/U 20161 Milano Italia (Italy) specifing that you want the source code of AlbaENG. At end see my home page on http://members.tripod.it/esseerre/Stefano.html. The following is the same text in italian: Data: giovedì, 15 febbraio 2001 Nome del programma: Alba Ho capito come funzionano i comandi DoCopSplit e ReDoCopSplit in Blitz2. Non posso dire lo stesso per il parametro NumCustoms del comando InitCopList. Comunque il programma fa il suo lavoro: fa la dissolvenza dal nero alla luce del cielo e viceversa. Lo scopo principale del programma è quello di impedire l'uso del vostro Amiga a persone non autorizzate, bloccando il vostro Amiga con una parola d'accesso. Il miglior posto per questo programma è nel vostro cassetto S:; digitate S:Alba nell'ultima linea della vostra User-Startup per eseguire il programma ad ogni boot. La prima volta che viene lanciato, il programma chiede la parola chiave (8 caratteri massimo) e la salva nel vostro cassetto S: nel file chiamato ParolaChiave; nei boot successivi blocca l'esecuzione della User-Startup finché non digitate la parola chiave precedentemente salvata. Non preoccupatevi se vi dimenticate la password; potete escludere il programma attivando il CapsLock (il tasto con la lucina) e premendo successivamente il tasto Help quando vi viene chiesta la parola chiave. Per qualche strana ragione, ma fortunatamente buona per lo scopo del programma, è che, diversamente da quanto è stato scritto sul manale di Blitz2, il programma legge e scrive un file (ParolaChiave) in modalita BLITZ! NON MODIFICATE LA USER-STARTUP PRIMA DI ESSERE SICURI CHE IL PROGRAMMA GIRI CORRETTAMENTE; PER PROVARLO LANCIATELO PRIMA DAL WORKBENCH! Qualche anno fa ho danneggiato la mia espansione di memoria fast da 2 mega ed il mio Amiga 1200 Commodore tentando di portare la memoria fast da 2 a 4 mega da solo; ora ho un nuovo Amiga 1200 di Amiga Technologies con la stessa espansione di memoria riparata e portata a 4 mega. L'unico problema è che l'orologio con la batteria tampone non è stato riparato e conta male i secondi; ogni volta che faccio il boot devo regolare l'ora. Per questa ragione e per gli azzeramenti dell'orologio dopo un crash del sistema, ho usato il programma DateCheck trovato su un dischetto di un numero di Amiga Magazine. Per vari problemi con questo programma, ho deciso di aggiungere il controllo della data ad Alba; ora il programma memorizza la data di boot nel file DataUltimoBoot nel vostro cassetto S:; al successivo boot confronta la data corrente con la data precedentemente salvata e, se la distanza tra le due date è di oltre un giorno, lancia il programma SYS:Prefs/Time. Ovviamente dovete avere questo programma per correggere la data, altrimenti la correzzione non avrà luogo. Questo programma è stato scritto in Blitz2 sul mio Amiga 1200 ma dovrebbe funzionare su qualsiasi Amiga; contattatemi per posta elettronica se così non fosse o per problemi di qualsiasi genere. Mi sento così stupido...la ragione per cui il programma prima non girava dal workbench è che avevo dimenticato di inserire il comando WBStartup! Devo ammettere che Alba non funziona sul mio Amiga 500 v1.2, ma io non mi sono arreso ed al momento sto ottimizzando il sorgente per permettere ad Alba di girare sul mio Amiga 500. Non sono responsabile dei danni che questo programma può arrecare al vostro sistema; lo usate a vostro esclusivo rischio! Ora il programma accetta due parametri: ASKPASSWORDCHANGE e DATECHECK; io credo che siano autoesplicativi; per chi non sapesse l'inglese ASKPASSWORDCHANGE vuol dire CHIEDI SE SI VUOLE CAMBIARE LA PAROLA CHIAVE e DATECHECK vuol dire CONTROLLA LA DATA; questi parametri possono essere omessi se necessario. Storia delle versioni: Versione 1.0 -> Prima edizione su Aminet. Versione 1.1 -> Ora potete tornare indietro nella digitazione usando il tasto backspace (quello grigio piccolo con la freccia a sinistra). Versione 1.2 -> Risolto il problema dell'esecuzione senza limiti del tasto backspace. Versione 1.3 -> Ora il programma può essere testato direttamente dal workbench. Versione 1.4 -> Aggiunto il controllo della data. Versione 1.5 -> Ora il programma è compatibile con gli Amiga NTSC Versione 1.6 -> Ora la versione inglese del programma funziona correttamente sugli Amiga NTSC. Versione 1.7 -> Ora il controllo della data funziona appropriatamente. Versione 1.8 -> Ora la sfumatura di colori appare correttamente anche sugli Amiga non AGA, ma la sfumatura è fissa. Versione 1.9 -> Ora il contollo della data non viene eseguito se non c'è il programma Time in SYS:Prefs. Versione 2.0 -> Rimosso un baco nel controllo della data. Versione 2.1 -> Ora l'altezza del testo di input è corretta sia che venga aperto uno schermo PAL od uno schermo NTSC. Versione 2.2 -> Aggiunto il filtro per i tasti qualificatori ed i parametri ASKPASSWORDCHANGE e DATECHECK. ***************************************************************** * Grazie a Michael Hendren per i suggerimenti che hanno portato * * a questa versione! * ***************************************************************** Versione 2.3 -> Ora il tasto AMIGA-DESTRO viene riconosciuto. ***************************************************************** * Grazie a Michael Hendren per i suggerimenti che hanno portato * * a questa versione! * ***************************************************************** Versione 2.4 -> Ora vengono riconosciuti anche tutti i tasti del tasterino numerico. ***************************************************************** * Grazie a Michael Hendren per i suggerimenti che hanno portato * * a questa versione! * ***************************************************************** Versione 2.5 -> Ora potete digitare la (nuova) parola chiave tenendo premuti i Tasti qualificatori. ***************************************************************** * Grazie a Michael Hendren per i suggerimenti che hanno portato * * a questa versione! * ***************************************************************** Nota: se volete il sorgente del programma, fate un vaglia ordinario di 10 Euro pagabile a: Stefano Regattin piazza Pietro Gasparri, 4/U 20161 Milano Italia (Italy) specificando che volete il sorgente di Alba. Per finire guardate la mia pagina su http://members.tripod.it/esseerre/Stefano.html. Ciao!