CompuServe Thread

#SDARK programming

3 messages in this thread
#47205From: Chris ShepardJun 14, 1995 12:22 PM
I have SDARK from one of the libraries, and I had a question regarding an AREXX program for it. I know little about AREXX (only that I have it running in WBStartup) and I would like to write a script for SDARK that will activate a differnt screen blanker depending on what day it is. Example: Every Monday—–Fireworks Tuesday—-Flying Toaster Wednesday–Fractals Thursday—Slider etc…. Sounds like a weird question, I know, but I like variety and this would be easier than always having to load up SDARK to change the blanker. Thanks Chris Shepard Now a proud owner of the Full AutoPilot! How 'bout you?
#47214From: Derek Lynn RakestrawJun 15, 1995 4:08 AM
Most modular blankers have a "Random"-module. It's a module that picks a blanker-module everytime the program is started. I belive SDARK has one to. So you maybe want to check on that. I'm sorry not to help you with the programming, I only no very little AREXX. The little I know, I've learned by modyfing other peoples scripts to my needs. with AutoPilot from Germany -yours truly * Derek *
#47218From: Jim ButterfieldJun 15, 1995 12:28 PM
Don't know about program SDARK or how it interfaces with ARexx, but the basic ARexx structure for doing things by day-of-week might run like this… note that I am asking the program simply to SAY the current day of the week, but you could substite code to launch your program, such as ADDRESS COMMAND "RUN >NIL: <NIL: SDARK FIREWORKS", if that's the appropriate format for doing the task. See the code I've substituted for Thursday, below. /* TRIGGER ACTION BASED ON DAY OF WEEK */ day = DATE('i')//7 SELECT WHEN day=0 THEN SAY 'Sunday' WHEN day=1 THEN SAY 'Monday' WHEN day=2 THEN SAY 'Tuesday' WHEN day=3 THEN SAY 'Wednesday' WHEN day=4 THEN ADDRESS COMMAND "RUN >NIL: <NIL: ED RAM:X" WHEN day=5 THEN SAY 'Friday' OTHERWISE SAY 'Saturday' END It goes without saying that you don't need to do things on a 7-day cycle; just change the 7 to whatever value suits and adjust the coding in the SELECT area. –Jim