Short: Lock your AMIGA by a keyword ITA-ENG Author: alba@esseerreerre.mailshell.com (Stefano Maria Regattin) Uploader: alba esseemmeerre mailshell com (Stefano Maria Regattin) Type: util/boot Version: 3.6 Architecture: m68k-amigaos Date: Saturday, 8th October 2011 Name of the program: AlbaEng (english version of Alba) THE REASON FOR THIS UPLOAD IS THE SUPPORT TO OLD NOT AGA AMIGAS! I have understood how work the commands DoCopSplit and ReDoCopSplit in Blitz2, and now I have a clever idea about the parameter NumCustoms of the command InitCopList. The program does 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 it with an access keyword. 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 keyword (8 chars maximum length) and saves it in your S: drawer in the file named Keyword; the next time you boot your AMIGA, it stops the execution of the User-Startup until you type the keyword you have previously saved. Don't worry if you forget the keyword; you can exclude the program activating the CapsLock (the key with the light) and then pressing the Help key when the keyword 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! Some years 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 one 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 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 permit to run Alba on my AMIGA 500. Now the program accepts two parameters: ASKKEYWORDCHANGE and DATECHECK; I think they are self-expliciting; they can be omitted if necessary. There are now three new parameters with their values, TOPCOLOUR, BOTTOMCOLOUR and TEXTCOLOUR to set the colours for the highest and the lowerst line of the screen for the colours fading and for the text; the values for all these must be specified as an hexadecimal number from 00 to FF for the red, the green and the blue components of the colours; now if all these three colours are the same, the text colour is inverted allowing the usage of the program. Now you can get random colours for each colour parameter specifing RANDOM instead of RRGGBB. I am not responsible of any damage this program can occurs to your system; you use it at your own risk! 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 check. 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 check 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! * ******************************************************************* Version 2.6 -> Now you can set the colours for the screen colour fading as you like by the parameters TOPCOLOUR and BOTTOMCOLOUR; if you leave these out, the screen will be totally black! Version 2.7 -> Added the selection of the text colour by the parameter TEXTCOLOUR. Version 2.8 -> Now the fading takes place for any combination of the red, the green and the blue components of the two faded colours, not only for the highest value (FF). Version 2.9 -> Now TEXTCOLOUR is inverted if specified and equal to both the TOPCOLOUR and BOTTOMCOLOUR keywords. Version 3.0 -> Now you can specify RANDOM instead of RRGGBB to have a random colour for TOPCOLOUR, BOTTOMCOLOUR and TEXTCOLOUR colour parameters. Version 3.1 -> Fixed a bug in the parameter counting that did give impossible to use all these. Version 3.2 -> Now youcan specify a date editor typing DATECHECK=DateEditor; if DATECHECK is alone, is assumed SYS:Prefs/Time as date editor. On date Thu, 7th Aug 2003 I have change the messages to the user of AlbaEng to match the meaning of Alba ones, the italian version. On date Wed, 13 Aug 2003 I have corrected an AlbaEng message to match the meaning of Alba one, the italian version. Version 3.3 -> Changed all the references to the english term Password into Keyword. Version 3.4 -> Now there is the italian explanation of the allowed parameters; you can omit the trailing zeroes of the colour numbers also. Version 3.5 -> Added non AGA AMIGA support. Version 3.6 -> Whole support for old not AGA Amigas, renamed Keyword the keyword file stored, before was still named Password for error. Note: if you want the source code of the program, make an international money order of five (5) Euros payable to: Stefano Maria Regattin piazza Pietro Gasparri, 4/U 20161 Milano Italia (Italy) specifing that you want the source code of AlbaENG. At end see my homepage on the following Web address: http://xoomer.virgilio.it/aregat/ and my commercial site also to the following Web address: http://www.esseemmeerre.altervista.org/ The following is the same text in italian: Data: sabato, 8 ottobre 2011 Nome del programma: Alba LA RAGIONE DI QUESTO CARICAMENTO E' IL SUPPORTO DEGLI AMIGA VECCHI NON AGA! Ho capito come funzionano i comandi DoCopSplit e ReDoCopSplit in Blitz2. Ora ho un'idea più chiara del parametro NumCustoms del comando InitCopList. Il programma fa il suo lavoro: fa la dissolvenza dal nero alla luce del giorno 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. Ora il programma accetta due parametri: ASKKEYWORDCHANGE e DATECHECK; io credo che siano autoesplicativi; per chi non sapesse l'inglese ASKKEYWORDCHANGE vuol dire CHIEDI SE SI VUOLE CAMBIARE LA PAROLA CHIAVE e DATECHECK vuol dire CONTROLLA LA DATA; questi parametri possono essere omessi se necessario. Ci sono ora tre nuovi parametri con i rispettivi valori, TOPCOLOUR, BOTTOMCOLOUR e TEXTCOLOUR, per impostare i colori per la linea piu' alta e per quella piu' bassa dello schermo per la dissolvenza dei colori e per il colore del testo; i valori per entrambi devono essere specificati come un numero esadecimale da 00 a FF per le componenti del rosso, del verde e del blu dei colori; ora se tutti questi tre colori sono identici tra loro, il colore del testo viene invertito per permettere l'utilizzo del programma. Ora potete ottenere dei colori a caso per ognuno dei tre parametri di colore specifcando RANDOM al posto di RRGGBB. Non sono responsabile dei danni che questo programma può arrecare al vostro sistema; lo usate a vostro esclusivo rischio! 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! * ***************************************************************** Versione 2.6 -> Ora potete scegliere i colori per la dissolvenza di colori dello schermo come preferite grazie ai parametri TOPCOLOUR e BOTTOMCOLOUR; se voi li omettete, lo schermo sarà completamente nero! Versione 2.7 -> Aggiunta la selezione del colore del testo grazie al parametro TEXTCOLOUR. Versione 2.8 -> Ora la dissolvenza ha luogo per qualsiasi combinazione delle componenti del rosso, del verde e del blu dei due colori, non solo per il valore piu' alto (FF). Versione 2.9 -> Ora il colore del testo TEXTCOLOUR viene invertito se specificato ed uguale ad entrambi i colori TOPCOLOUR e BOTTOMCOLOUR. Versione 3.0 -> Ora potete specificare RANDOM al posto di RRGGBB per avere dei colori casuali per i parametri di colore TOPCOLOUR, BOTTOMCOLOUR e TEXTCOLOUR. Versione 3.1 -> Fissato un baco nel conteggio dei parametri che rendeva impossibile usare solo parte di questi. Versione 3.2 -> Ora potete specicare un'editore per la data digitando DATECHECK=EditoreData; se DATECHECK è solo, SYS:Prefs/Time è sottinteso come editore per la data. In data gio, 7 agosto 2003 ho cambiato i messaggi per l'utente di AlbaEng, la versione inglese di Alba, per farli corrispondere nel significato a quelli in italiano di Alba. In data mer, 13 agosto 2003 ho cambiato un messaggio in AlbaEng per farlo corrispondere nel significato a quello in italiano di Alba. Versione 3.3 -> Cambiati tutti i riferimenti al termine inglese Password in Keyword. Versione 3.4 -> Ora c'è la spiegazione in italiano dei parametri permessi; potete anche omettere gli zeri davanti ai numeri dei colori. Versione 3.5 -> Aggiunto il supporto per gli AMIGA non AGA. Versione 3.6 -> Pieno supporto per i vecchi Amiga non AGA, rinominato Keyword il file della parola chiave memorizzata da AlbaEng, prima si chiamava ancora Password per errore. Nota: se volete il sorgente del programma, fate un vaglia ordinario di cinque (5) Euro pagabile a: Stefano Maria Regattin piazza Pietro Gasparri, 4/U 20161 Milano Italia (Italy) specificando che volete il sorgente di Alba. Per finire guardate la mia pagina sul Web al seguente indirizzo: http://xoomer.virgilio.it/aregat/ ed anche il mio sito commerciale sul Web al seguente indirizzo: http://www.esseemmeerre.altervista.org/ Ciao!