...

View Full Version : programming question



jhammock77
11-10-2012, 03:53 AM
Is it possible to just use notepad and command line to write a program that will create a photo slideshow? Without using any other programs other then the factory default programs? Can this be done?

DELOCH
11-11-2012, 12:04 AM
what do you mean by factory default programs?

Do you mean fresh install?

Sadly, there are very few default scripting/coding utilities on a fresh windows and doing
such a thing in a command line and notepad is somewhat frustrating.
I believe it is possible to use Windows Script Host to do this, but it is the only way I can think of that is "somewhat reasonable" and doesnt involve writing shellcode in command
prompt using default utilities to hardcode an executable...

If I had to do something like this, I would stick to microsoft office, or if you do not
have that installed, you can try using Dynamic HTML in notepad and run the slideshow
in a browser, as most browsers can support old-style Dynamic HTML, and internet explorer comes with any windows platform, this can be done.

Also, you can try using a batch script to open a certain image in a certain interval, and reset afterwards (dont know how), but this would be a pain as well.

The most elegant solution I would imagine would be Dynamic HTML... although it does not "particularly" use a command prompt...

Hopefully this helped :X

KenJackson
11-17-2012, 05:37 PM
Almost definitely yes. But you have not been very specific about what you want.

A less-conventional solution, if you have a web site, is one of the power-point-like web presentations. Here are example presentations of two different technologies: Slidy (http://www.w3.org/2006/05/Slidy-XTech/) and S5 (http://meyerweb.com/eric/tools/s5/s5-intro.html).

You mentioned notepad, so you're probably running Windows. If you install Cygwin (http://cygwin.com/), you can write a small bash script to run in a bash shell (a very powerful replacement for the DOS/CMD window) that would pop up a picture, wait and pop up another. I just wrote this little script that I ran just now. It's very limited, but it works.

#!/bin/bash
IMAGES=(
"cat-with-mice-on-head.jpg"
"MSlogo-big.jpg"
"shed-old-side.jpg"
)

cd ~/img || exit # Change to my directory with images
for image in "${IMAGES[@]}"; do
qiv "$image" & # Display the image with the "qiv" program
sleep 2.5 # Pause 2.5 seconds
kill $(jobs -p) # Stop displaying the image
done

And of course, you can write a python (http://python.org/) script with notepad.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum