Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-10-2012, 02:53 AM   PM User | #1
jhammock77
New to the CF scene

 
Join Date: Nov 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
jhammock77 is an unknown quantity at this point
programming question

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?
jhammock77 is offline   Reply With Quote
Old 11-10-2012, 11:04 PM   PM User | #2
DELOCH
Regular Coder

 
DELOCH's Avatar
 
Join Date: Apr 2006
Location: Canada
Posts: 537
Thanks: 4
Thanked 2 Times in 2 Posts
DELOCH is an unknown quantity at this point
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
DELOCH is offline   Reply With Quote
Old 11-17-2012, 04:37 PM   PM User | #3
KenJackson
New to the CF scene

 
Join Date: Aug 2010
Location: Maryland, USA
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
KenJackson is an unknown quantity at this point
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 and S5.

You mentioned notepad, so you're probably running Windows. If you install Cygwin, 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.
Code:
#!/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 script with notepad.
KenJackson is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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


All times are GMT +1. The time now is 06:32 PM.


Advertisement
Log in to turn off these ads.