I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods
Amazon Honor System Click Here to Pay Learn More
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / Other I-Appliances / 3Com Audrey
New Random Picture App

New MessageNew Random Picture App (modified 0 times) davinci27
Profile
PicSaver is a photon application that will display random picture from a specified directory. To configure the application run PicSaver -cc. You can also manually set the directory and delay with the -d and -t options. PicSaver -d /pics -t 5000

You can Also use infinity's method of random screensaver with PicSaver. Check out http://www.linux-hacker.net/cgi-bin/UltraBoard/UltraBoard.pl?Action=ShowPost&Board=3Com_Audrey&Post=1356&Idle=0&Sort=0&Order=Descend&Page=1for the details. The only diference is you script only needs the following two lines.</FONT></P>

 PicSaver &
fireKey string=@ENT

You can download it at http://www.davinci27.org/audrey/software.html

On a related note, maybe some of you photon programmers can help me out. Whenever saver spawns this app, it spawns it in the background. That's why you have to have the firkey command in the script. I've tried everything I can think of to get the app to launch in from of everything. I have the focus arg set and every time an image is loaded a window tofront command is issued. I even put code in the app to emit a key stroke, but nothing short of the fireKey lines seems to bring it to front. Any ideas?

daivnci27

04-22-2002 07:48:32

New MessageRE:New Random Picture App (modified 0 times) Infinity
Profile
davinci,
i haven't looked at your script and i don't know if you included some lines to check if there is a session of randompic running or not before launching. If you didn't put this feature in, screen saver will continue launching new sessions after each screen saver set time(i.e. if set time =1min, 1hr=60 overlapping sessions), so over time it cause audrey to hang and you will not be able to exit. Only one session of randompic should be running.
04-22-2002 08:32:50

New MessageRE:New Random Picture App (modified 0 times) davinci27
Profile
This is a new Application. It doesn't use randompic. It is a photon app that has a configuration interface. It will automatically check to see if an occurance is running, if so that occurance will come to the front and the new occurance will exit. So you can't have multiple occurances of PicSaver running.

davinci27

04-22-2002 10:00:13

New MessageRE:New Random Picture App (modified 0 times) jkidd
Profile
davinci27,
This thing rocks! I can put all the pics I want into a share directory on another computer and let it go all day. Thanks for the program, I was looking for something like this that would be easy to setup and use.

jkidd

04-22-2002 18:54:05

New MessageRE:New Random Picture App (modified 0 times) santur
Profile
I tried the random picture application, but it only shows one picture and does not change to another one even though I have many pictures in the directory. I am running it on Infinity's image.

Santur

04-22-2002 20:32:52

New MessageRE:New Random Picture App (modified 0 times) davinci27
Profile
santur - are all of your picture 640X480 or less? The audrey runs out of memory with images larger than that. Is it the same image displaying everytime you run PicSaver? How long did you set the wait time? Be sure the number is greater than 5000. This gives audrey time to load the next image before drawing it to the screen. Are all the images .gif or .jpg? Currently PicSaver only supports gif and jpegs. If you need another format, let me know.

Everyone - this is actually a little toy for me to learn more about phab programing. I'm thinking of adding a clock, maybe a calendar, maybe a random message. If you have a suggestion, let me know. I don't yet know what I'll add, but I'll be sure to post things as they change.

davinci27

04-23-2002 07:10:09

New MessageRE:New Random Picture App (modified 0 times) toyman
Profile
I would like to be able to run this (or randomPic) while phjuke is playing. So far my experiments with randompic have resulted in audio dropouts on some picture transitions, even after playing with the nfs buffers and program priorities. Anything that you could add to support this would be appreciated. (Maybe reading the images in small pieces with pauses in between.)

toyman

04-23-2002 17:25:47

New MessageRE:New Random Picture App (modified 0 times) santur
Profile
davinci,

thanks!
converting images to 640*480 fixed the problem. (i used ifanview to convert all the pictures at once)

BTW, does your program check for jpeg, gif files and skip the other types of file? for some reason, XP creates Thumbs.db file which kills RandomPic.

santury

04-23-2002 20:57:30

New MessageRE:New Random Picture App (modified 0 times) davinci27
Profile
Currently it doesn't, but that's on of the things I'm working on. I hope to have an update sometime early next week that will include better file filtering, an optional clock, and improved configure window, and better memory management. That's a pretty big stack of stuff to get done between now and then, so we'll see what happens.

davinci27

04-24-2002 06:45:59

New MessageRE:New Random Picture App (modified 0 times) jbhasin
Profile
Do I need Shelf to run the Picture app as a Screen saver? In reading Infinity's description it seemed to me like Shelf was needed (step 5). I would like a screensaver app but dont use shef currently.

Thanks

Jaspal

04-24-2002 15:47:43

New MessageRE:New Random Picture App (modified 0 times) davinci27
Profile
no you don't need shelf, just saver and execv. for the most part, follow infinity's directions right up to the part about shelf. Use the script above for you sh script and make you saver.cfg file look like this

[saver config]
saver = Whatever_You_named_your_link _to_execv
timer_value=#ofminutes to wait

add saver to your boot.sh and restart and you should be ready to go. Rember to add & to the end of you saver line.

Everyone - apparently my list wasn't as hard as I was expecting, so I'll have a new update in the morning. It will have all of the stuff listed above. Next I'll try to make the clock have options such as fontsize, color, location and type of display. Another option I'm look at is pulling data from a URL. This would let me write a script to strip news headlines from pages and display them on the screen saver. I also want to throw together a small app to slay and respan slayer so I can pause and start the saver without having to go into the saver.cfg.

davinci27

04-24-2002 19:16:26

New MessageRE:New Random Picture App (modified 0 times) davinci27
Profile
PicSaver has been updated. New features include:

Optional Clock Display
New Configure Layout - allows you to browse to select the folder, and set the time in seconds
Image filtering - only tries to open *.jpg and *.gif
Better memory management - Fixed bug where wasn't releasing Memory
Changed error handling - app quits after 10 errors.

download it at http://www.davinci27.org/audrey/software.html

davinci27

04-25-2002 11:30:04

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3