Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Nov 2012
    Thanked 0 Times in 0 Posts

    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?

  2. #2
    Regular Coder DELOCH's Avatar
    Join Date
    Apr 2006
    Thanked 2 Times in 2 Posts
    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

  3. #3
    New Coder
    Join Date
    Aug 2010
    Maryland, USA
    Thanked 0 Times in 0 Posts
    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.
    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
    And of course, you can write a python script with notepad.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts