amiga.org
     
iconAll times are GMT -6. The time now is 07:54 AM. | Welcome to Forum, please register to access all of our features.

» Amiga.org » Amiga computer related discussion » Amiga Software Issues and Discussion » Need help setting up a gag

Amiga Software Issues and Discussion This forum exists for the discussion of the use, issues with, and fun brought about by classic and next generation Amiga software.

Reply
 
Thread Tools Display Modes
Old 04-14-2006, 08:15 PM   #1
alberonn
Hobbyist
Points: 6,763, Level: 54 Points: 6,763, Level: 54 Points: 6,763, Level: 54
Activity: 0% Activity: 0% Activity: 0%
 
alberonn's Avatar
 
Join Date: Aug 2002
Location: Salem, OR
Posts: 61
Default Need help setting up a gag

I am borrowing a friend's AmigaOne and I want to setup a prank.

I have discovered that the AmigaOne's themes are setup by copying all of the prefs files to ENV: . I believe that the "Save Theme" Icon just copies them to ENVARC: . I want to create a joke theme for him. (It would still*leave his system usable, it's just the backdrop, ect. would be a bit "shocking" for him. )

I know I can bury the command to launch the script or whatever in his Startup-Sequence. What I need is some way to setup a "delay" on when it copies the files over. Like after every 10 reboots or so.

What would the best way to do this be???
alberonn is offline   Reply With Quote
Old 04-14-2006, 09:59 PM   #2
Matt_H
VIP / Donor
Points: 22,261, Level: 92 Points: 22,261, Level: 92 Points: 22,261, Level: 92
Activity: 37% Activity: 37% Activity: 37%
 
Matt_H's Avatar
 
Join Date: Mar 2003
Location: Boston, MA, United States
Posts: 4,985
Default Re: Need help setting up a gag

You might be able to set up a script that replaces ENV:sys/wbpattern.prefs depending on a variable. (Something you'll need to dump in ENVARC Augment the value by 1 each boot, and if it's divisible by 10, change the prefs. (Mod operator = 0)

Better hope your friend doesn't read Amiga forums!
Matt_H is offline   Reply With Quote
Old 04-15-2006, 07:19 AM   #3
Amigadude
Too much caffeine
Points: 5,932, Level: 49 Points: 5,932, Level: 49 Points: 5,932, Level: 49
Activity: 1% Activity: 1% Activity: 1%
 
Join Date: Mar 2002
Posts: 86
Send a message via ICQ to Amigadude Send a message via MSN to Amigadude
Default Re: Need help setting up a gag

to do it in arexx copy & paste this into a text editor, save as s:tenthboot then do this from a shell prompt "protect s:tenthboot +s"

Quote:
Code:
/* $VER: V0.001 change on tenth boot */


/* copy normal WBPattern.prefs with:
        copy envarc:sys/WBPattern.prefs envarc:sys/WBPattern-norm.prefs
   edit wbpattern using the prefs editor, save then copy that with:
        copy envarc:sys/WBPattern.prefs envarc:sys/WBPattern-tenth.prefs
   copy the original back with:
        copy envarc:sys/WBPattern-norm.prefs envarc:sys/WBPattern.prefs */


IF Open('inputfile', 'rexx:tenthboot.count', 'R') then do
    bootcount = ReadLN('inputfile')
    call close('inputfile')
end
else do
    bootcount = 0
end

bootcount = bootcount + 1

select
    when (bootcount = 10) then
        ADDRESS COMMAND "copy >nil: env:sys/WBPattern-tenth.prefs env:sys/WBPattern.prefs"
    when (bootcount = 11) then do
        ADDRESS COMMAND "copy >nil: env:sys/WBPattern-norm.prefs env:sys/WBPattern.prefs"
        bootcount = 1
    end
    otherwise
end

IF Open('outputfile', 'rexx:tenthboot.count', 'W') then do
    call WriteLN('outputfile', bootcount)
    call close('outputfile')
end
below the line "C:Copy >NIL: ENVARC: RAM:ENV ALL NOREQ" add these two lines:

Quote:
Code:
SYS:System/RexxMast >NIL:
s:tenthboot
then remove the other "SYS:System/RexxMast >NIL:" from s:startup-sequence or user-startup...

should work, any problems you can get in touch with me on the #amiga.org channel on zirc

JohnN (AKA AD-Laptop, Amigadude)
Amigadude is offline   Reply With Quote
Old 04-15-2006, 09:32 AM   #4
blobrana
Energizer Bunny of Babble
Points: 16,995, Level: 83 Points: 16,995, Level: 83 Points: 16,995, Level: 83
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2002
Posts: 4,743
Default Re: Need help setting up a gag

Hum,
reminds me of the morbidly obese computer geek who sabotaged the computer system in Jurassic Park.

“Ah ah ah, you didn't say the magic word”
__________________

http://www.amiga.org/themes/Amiga.or...ange_arrow.gif[size=x-small]For Astronomy News[/size]
blobrana is offline   Reply With Quote
Old 04-15-2006, 03:31 PM   #5
alberonn
Hobbyist
Points: 6,763, Level: 54 Points: 6,763, Level: 54 Points: 6,763, Level: 54
Activity: 0% Activity: 0% Activity: 0%
 
alberonn's Avatar
 
Join Date: Aug 2002
Location: Salem, OR
Posts: 61
Default Re: Need help setting up a gag

The line you mentioned in the S-S (C:Copy >NIL: ENVARC: RAM:ENV ALL NOREQ) doesn't seem to exist in OS4.

This is what I got:

-8<-------

; $VER: Startup-Sequence 51.2 (28.05.2005)

C:SetPatch QUIET

FailAt 21

C:Version >NIL:
SetEnv Workbench $Workbench
SetEnv Kickstart $Kickstart
UnSet Workbench
UnSet Kickstart

C:MakeDir RAM:T RAM:Clipboards

C:Assign >NIL: T: RAM:T
C:Assign >NIL: CLIPS: RAM:Clipboards
C:Assign >NIL: REXX: S:Arexx
C:Assign >NIL: LOCALE: SYS:Locale DEFER
C:Assign >NIL: CLASSES: SYS:classes DEFER
C:Assign >NIL: PRINTERS: DEVS:Printers
C:Assign >NIL: KEYMAPS: DEVS:Keymaps
C:Assign >NIL: LIBS: SYS:Classes add
C:Assign >NIL: HELP: LOCALE:Help DEFER

C:Mount >NIL: DEVSOSDrivers/~(#?.(info|off))
C:AddNetInterface >NIL: DEVS:NetInterfaces/~(#?.(info|off))
C:LoadMonDrvs
C:AddDataTypes REFRESH QUIET
C:IPrefs
C:ConClip

Path RAM: S:Shell S:Arexx SYS:Utilities SYS:Tools SYS:Tools/Commodities SYS:System SYS:Prefs SYS:WBStartup

SYS:System/REXXMast >NIL:
C:USBCtrl >NIL: start

IF EXISTS SYS:Utilities/GhostScript
C:Assign >NIL: ghostscript: SYS:Utilities/GhostScript
EndIF

IF EXISTS S:User-Startup
Execute S:User-Startup
EndIF

;BEGIN PowerIcons
Run >NIL: PowerIcons >NIL:
;END PowerIcons

C:LoadWB
EndCLI >NIL:
-8<-------

The only change I've made was adding the Power Icons lines.
alberonn is offline   Reply With Quote
Old 04-17-2006, 07:26 PM   #6
alberonn
Hobbyist
Points: 6,763, Level: 54 Points: 6,763, Level: 54 Points: 6,763, Level: 54
Activity: 0% Activity: 0% Activity: 0%
 
alberonn's Avatar
 
Join Date: Aug 2002
Location: Salem, OR
Posts: 61
Default Re: Need help setting up a gag

OK I set it up as directed. However, I just stuck the "S:tenthboot" command right after the existing REXXMast command. It works beautifully.

One thing I really like it the fact that it sets it to the normal pattern after the tenth boot.
alberonn is offline   Reply With Quote
Reply

Bookmarks

Tags
setting , gag

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up gcc and os 3.9 ndk dnelsonfl Amiga Software Issues and Discussion 1 03-31-2006 11:29 PM
Setting PGit CH / Entertainment 3 09-25-2005 03:30 PM
Is setting a Voodoo 3/2000 the same as setting up a 3/3000? Gav Amiga Hardware Issues and discussion 11 05-19-2005 07:18 PM
Setting Up PPC Robert17 Amiga Software Issues and Discussion 3 12-23-2004 03:08 AM
Setting up AmiTCP EdKing Amiga Software Issues and Discussion 14 08-29-2004 06:19 PM