Jump to content

A Slideshow widget for XP


paullab
 Share

Recommended Posts

A Slideshow application similar to the Vista slideshow widget (Stays on top of all windows)

Creates/Reads a text file list of images and runs through them in sequence or randomly.

Slideshow.txt is a sample INI file (RENAME THIS FILE TO SLIDESHOW.INI to start)

Also create a file show.txt (can be empty) and place it in the same directory as the application/script

You can specifiy (via this ini file).

The

  • Size and position of the show, as well as the frequencey images are editable.
  • The image is scaled to fit and then centred verticall & horizontally in the

    viewport defined by the width and height

  • There is also the ability to hide the image if it gets in the way Or

    work sequentially through a list of images in a text File (the app

    allows you to create a list by trawling through a directory and all

    sub-directories to create a list of jpg files)

  • For the paranoind you can even encrypt the slideshowfile

When in slideshow mode

left clicking on an image hides it for you (if set on in the ini file)

Right clicking on the middle third of an image fits it to full-screen and copies it to the clipboard (The show will be PAUSED)

Right clicking on the right third of an image moves to the next image

Right clicking on the left third of an image shows the previous image

When in fullscreen Mode

Right clicking on the right third of an image moves to the next image

left clicking on an image hides it for you

A Taskbar menu allows you to

  • Toggle the Viewstate of the show
  • Select a diferent Show
  • Create a new show
  • Edit & save the settings
  • Exit the applicatiopn

Then file "_GDIClip.au3" is a direct copy of some UDF's created by Progandy

!!! Some really fantastic work !!! see

http://www.autoitscript.com/forum/index.php?showtopic=70237

(There are 2 constants replaced by values)

BAD,BAD, BAD somehow uploaded a file with the incorrect save settings function. now fixed

slideshow.txt

_GDIClip.au3

Art_Canvas.ico

SlideShow.au3

Edited by paullab
Wallpaper Rotatorwith overlay, Loop through a folder of wallpaper & another of overlay, then create a combined image and set it as the wallpaperE-Mail passthru, Send any file, even executables via e-mail as plain text. The recipient can then later re-construct them.Slideshow widget, A slideshow widget similar to the Vista onePredictive typing using the Numpad, Predictive typing using the numpad of a keyboar similar to that on a mobile phone (the key is the .t16 file).PSTools Front End, For Remote Admin. Just makes life a lot easier (Demonstrates executing external programs and passing parameters, tabbed form Handling STDIN/STDERR)FTP Helper application Up and Download files from an FTP server demonstrates this and Tooltray TipsShow a Map of your Post-codes/Zip Codes, Uses the Clipboard, Hotkeys, the system tray (incl. menus)Disc/CD/DVD Catalogue, Ideal for all those Covermount Discs (Demonstrates Array handling, executing DOS programs, handling STDIN/STDOUT recursive directory reads, file searching.)YAST , Yet another Stopwatch/Timer (Uses a hotkey, Copies to clipboard, handles multiple events and stays on top)Keyboard Status Indicator , Indicates status of NumLock, Caps Lock and Scroll Lock Keys, demonstrates API calling & System tray Icon Toggling
Link to comment
Share on other sites

This is really good, I love it! :D

But IMHO you should remove all that widget-talk, it confused the hell out of me, it's Explorer.exe that shows pictures fullscreen (by using shimgvw.dll) and it started with WindowsXP. Unless you meant something else? ;)

Link to comment
Share on other sites

This is really good, I love it! ;)

But IMHO you should remove all that widget-talk, it confused the hell out of me, i

Agreed, why we don't simply call them applications or features, as applicable, is beyond me

Wallpaper Rotatorwith overlay, Loop through a folder of wallpaper & another of overlay, then create a combined image and set it as the wallpaperE-Mail passthru, Send any file, even executables via e-mail as plain text. The recipient can then later re-construct them.Slideshow widget, A slideshow widget similar to the Vista onePredictive typing using the Numpad, Predictive typing using the numpad of a keyboar similar to that on a mobile phone (the key is the .t16 file).PSTools Front End, For Remote Admin. Just makes life a lot easier (Demonstrates executing external programs and passing parameters, tabbed form Handling STDIN/STDERR)FTP Helper application Up and Download files from an FTP server demonstrates this and Tooltray TipsShow a Map of your Post-codes/Zip Codes, Uses the Clipboard, Hotkeys, the system tray (incl. menus)Disc/CD/DVD Catalogue, Ideal for all those Covermount Discs (Demonstrates Array handling, executing DOS programs, handling STDIN/STDOUT recursive directory reads, file searching.)YAST , Yet another Stopwatch/Timer (Uses a hotkey, Copies to clipboard, handles multiple events and stays on top)Keyboard Status Indicator , Indicates status of NumLock, Caps Lock and Scroll Lock Keys, demonstrates API calling & System tray Icon Toggling
Link to comment
Share on other sites

I'm getting errors. Here is the results:

>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3" /autoit3dir "C:\Program Files\AutoIt3" /UserParams    
+>08:35:22 Starting AutoIt3Wrapper v.1.10.1.8   Environment(Language:0409  Keyboard:00000409  OS:WIN_XP/Service Pack 3  CPU:X86)
>Running AU3Check (1.54.13.0)  from:C:\Program Files\AutoIt3
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(69,12) : WARNING: $Timer: possibly used before declaration.
    If $Timer =
    ~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(69,24) : WARNING: $picDelay: possibly used before declaration.
    If $Timer = $picDelay Then
    ~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(126,34) : WARNING: $Show_file: possibly used before declaration.
        $line = FileReadLine($Show_file)
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(135,57) : WARNING: $PrevImage: possibly used before declaration.
        $ImageFileName = $PrevImage     ;show the previous image
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~         ~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(140,26) : WARNING: $Encrypted_Showfile: possibly used before declaration.
        If $Encrypted_Showfile =
        ~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(154,23) : WARNING: $Fit_Width_Height: possibly used before declaration.
    If $Fit_Width_Height =
    ~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(156,28) : WARNING: $MaxWidth: possibly used before declaration.
            $Image_Width = $MaxWidth
            ~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(159,30) : WARNING: $MaxHeight: possibly used before declaration.
            $Image_Height = $MaxHeight
            ~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(187,52) : WARNING: $Form1: possibly used before declaration.
    $graphics = _GDIPlus_GraphicsCreateFromHWND($Form1)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(190,75) : WARNING: $hBrush1: possibly used before declaration.
    _GDIPlus_GraphicsFillRect($graphics, 0, 0, $MaxWidth, $MaxHeight,$hBrush1)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(201,16) : WARNING: $picRandom: possibly used before declaration.
    If $picRandom =
    ~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(202,17) : WARNING: $Thisimage possibly not declared/created yet
        $Thisimage +=1
        ~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(203,30) : WARNING: $maximages: possibly used before declaration.
        If $Thisimage > $maximages Then
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(230,18) : WARNING: $Hideonclick: possibly used before declaration.
    If $Hideonclick =
    ~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(277,29) : WARNING: $Form2: possibly used before declaration.
    GUISetState(@SW_SHOW,$Form2)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(279,70) : WARNING: $ImageFileName: possibly used before declaration.
    Local $OriginalImage = _GDIPlus_BitmapCreateFromFile ($ImageFileName)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(360,35) : WARNING: $base: possibly used before declaration.
    $inilist = _FileListToArray($base,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(365,23) : WARNING: $bigarray: possibly used before declaration.
            _ArrayAdd($bigarray,
            ~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(442,34) : WARNING: $Top_of_Widget: possibly used before declaration.
    GUICtrlSetData(-1,$Top_of_Widget)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(447,26) : WARNING: $right: possibly used before declaration.
    GUICtrlSetData(-1,$right)
    ~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(469,31) : WARNING: $Background: possibly used before declaration.
    GUICtrlSetData(-1,$Background)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(478,20) : WARNING: $S1: possibly used before declaration.
    GUICtrlSetData($S1,
    ~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(483,61) : WARNING: $S2: possibly used before declaration.
    IniWrite("slideshow.ini","Defaults","Width",GUICtrlRead($S2)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(484,62) : WARNING: $S3: possibly used before declaration.
    IniWrite("slideshow.ini","Defaults","Height",GUICtrlRead($S3)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(485,59) : WARNING: $S4: possibly used before declaration.
    IniWrite("slideshow.ini","Defaults","Top",GUICtrlRead($S4)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(486,61) : WARNING: $S5: possibly used before declaration.
    IniWrite("slideshow.ini","Defaults","Right",GUICtrlRead($S5)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(487,61) : WARNING: $S6: possibly used before declaration.
    IniWrite("slideshow.ini","Defaults","Delay",GUICtrlRead($S6)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(488,62) : WARNING: $S7: possibly used before declaration.
    IniWrite("slideshow.ini","Defaults","Random",GUICtrlRead($S7)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(489,65) : WARNING: $S8: possibly used before declaration.
    IniWrite("slideshow.ini","Defaults","Encrypted",GUICtrlRead($S8)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(490,68) : WARNING: $S10: possibly used before declaration.
    IniWrite("slideshow.ini","Defaults","Hideonclick",GUICtrlRead($S10)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(491,66) : WARNING: $S9: possibly used before declaration.
    IniWrite("slideshow.ini","Defaults","Background",GUICtrlRead($S9)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3(84,82) : WARNING: $Encrypted_Showfile: declared global in function only. Prefer top of file.
    Global $Encrypted_Showfile = IniRead("slideshow.ini","Defaults","Encrypted","0")
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3 - 0 error(s), 32 warning(s)
->08:35:22 AU3Check ended.rc:1
>Running:(3.2.12.1):C:\Program Files\AutoIt3\autoit3.exe "C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3"  
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3 (362) : ==> Subscript used with non-Array variable.:
While $l2 < $inilist[0]
While $l2 < $inilist^ ERROR
->08:35:43 AutoIT3.exe ended.rc:1
>Exit code: 1   Time: 23.327

post-9937-1219757990_thumb.jpg

Need a website: http://www.iconixmarketing.com

Link to comment
Share on other sites

I'm getting errors. Here is the results:

............

C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3 - 0 error(s), 32 warning(s)

>Running:(3.2.12.1):C:\Program Files\AutoIt3\autoit3.exe "C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3"  
C:\Documents and Settings\Onest\Desktop\Slideshow\SlideShow.au3 (362) : ==> Subscript used with non-Array variable.:
While $l2 < $inilist[0]
While $l2 < $inilist^ ERROR
->08:35:43 AutoIT3.exe ended.rc:1
>Exit code: 1   Time: 23.327

right, the warnings are nothing to worry about, that is simply because the structure of the code is a little unusual (at least as far as au3check is concerned).

The second error is caused by poor error trapping. (I will fix later)

you have tried to create a new show where the root directory you have selected does not have any sub-directories.

to get around this for now, simply create an empty folder in the root you have selected

Edited by paullab
Wallpaper Rotatorwith overlay, Loop through a folder of wallpaper & another of overlay, then create a combined image and set it as the wallpaperE-Mail passthru, Send any file, even executables via e-mail as plain text. The recipient can then later re-construct them.Slideshow widget, A slideshow widget similar to the Vista onePredictive typing using the Numpad, Predictive typing using the numpad of a keyboar similar to that on a mobile phone (the key is the .t16 file).PSTools Front End, For Remote Admin. Just makes life a lot easier (Demonstrates executing external programs and passing parameters, tabbed form Handling STDIN/STDERR)FTP Helper application Up and Download files from an FTP server demonstrates this and Tooltray TipsShow a Map of your Post-codes/Zip Codes, Uses the Clipboard, Hotkeys, the system tray (incl. menus)Disc/CD/DVD Catalogue, Ideal for all those Covermount Discs (Demonstrates Array handling, executing DOS programs, handling STDIN/STDOUT recursive directory reads, file searching.)YAST , Yet another Stopwatch/Timer (Uses a hotkey, Copies to clipboard, handles multiple events and stays on top)Keyboard Status Indicator , Indicates status of NumLock, Caps Lock and Scroll Lock Keys, demonstrates API calling & System tray Icon Toggling
Link to comment
Share on other sites

I just looked over the sourcecode for this and I must say I am confused now ;) . When I posted my post above I had only runned the script a few times and not read it so I thought it was only For watching images fullscreen.

But after rereading your first post a few times and reading the code I saw that there is a second GUI that never shows?? :D And it locks up when trying to show it? Maybe this should be called a widget, but I can't tell until you fix it so you can get to the smaller GUI... ;)

Edited by AdmiralAlkex
Link to comment
Share on other sites

Have a look at the init function.

unless you rename the file slideshow.txt to slideshow.ini it will try and run FULL SCREEN. (but because you have not yet creagted a show file it will be blank).

the second gui is accessed from the taskbar menu.

Wallpaper Rotatorwith overlay, Loop through a folder of wallpaper & another of overlay, then create a combined image and set it as the wallpaperE-Mail passthru, Send any file, even executables via e-mail as plain text. The recipient can then later re-construct them.Slideshow widget, A slideshow widget similar to the Vista onePredictive typing using the Numpad, Predictive typing using the numpad of a keyboar similar to that on a mobile phone (the key is the .t16 file).PSTools Front End, For Remote Admin. Just makes life a lot easier (Demonstrates executing external programs and passing parameters, tabbed form Handling STDIN/STDERR)FTP Helper application Up and Download files from an FTP server demonstrates this and Tooltray TipsShow a Map of your Post-codes/Zip Codes, Uses the Clipboard, Hotkeys, the system tray (incl. menus)Disc/CD/DVD Catalogue, Ideal for all those Covermount Discs (Demonstrates Array handling, executing DOS programs, handling STDIN/STDOUT recursive directory reads, file searching.)YAST , Yet another Stopwatch/Timer (Uses a hotkey, Copies to clipboard, handles multiple events and stays on top)Keyboard Status Indicator , Indicates status of NumLock, Caps Lock and Scroll Lock Keys, demonstrates API calling & System tray Icon Toggling
Link to comment
Share on other sites

Have a look at the init function.

unless you rename the file slideshow.txt to slideshow.ini it will try and run FULL SCREEN. (but because you have not yet creagted a show file it will be blank).

the second gui is accessed from the taskbar menu.

Ok, I renamed it and it and the small gui showed, and I can change to full screen but it doesn't work to go back from full screen. When I rightclick in the middle of the screen there doesn't seem to happen anything.

PS. It exits if I start without the showfile, I had to manually create it for it to start.

Edit: Actually it seems like right-clicking the any of the gui's (the middlepart) locks them. ie they stop responding.

Edited by AdmiralAlkex
Link to comment
Share on other sites

Edit: Actually it seems like right-clicking the any of the gui's (the middlepart) locks them. ie they stop responding.

sorry about that, as is obvious I am rubbish at documentation.

If you have the app running (not full screen) and right click on the Middle of the small image, the image will be shown full screen, copied to the clipboard, and the show will be paused

Wallpaper Rotatorwith overlay, Loop through a folder of wallpaper & another of overlay, then create a combined image and set it as the wallpaperE-Mail passthru, Send any file, even executables via e-mail as plain text. The recipient can then later re-construct them.Slideshow widget, A slideshow widget similar to the Vista onePredictive typing using the Numpad, Predictive typing using the numpad of a keyboar similar to that on a mobile phone (the key is the .t16 file).PSTools Front End, For Remote Admin. Just makes life a lot easier (Demonstrates executing external programs and passing parameters, tabbed form Handling STDIN/STDERR)FTP Helper application Up and Download files from an FTP server demonstrates this and Tooltray TipsShow a Map of your Post-codes/Zip Codes, Uses the Clipboard, Hotkeys, the system tray (incl. menus)Disc/CD/DVD Catalogue, Ideal for all those Covermount Discs (Demonstrates Array handling, executing DOS programs, handling STDIN/STDOUT recursive directory reads, file searching.)YAST , Yet another Stopwatch/Timer (Uses a hotkey, Copies to clipboard, handles multiple events and stays on top)Keyboard Status Indicator , Indicates status of NumLock, Caps Lock and Scroll Lock Keys, demonstrates API calling & System tray Icon Toggling
Link to comment
Share on other sites

BAD,BAD, BAD somehow uploaded a file with the incorrect save settings function. now fixed

also now trap errors when no slideshow exists

an fixed a bug for when the slideshow folder has no subfolders in the slideshow creation functions.

In addition after opening an image in fullscreen mode you can now move to the next image by right clicking the right 3rd of the image

Wallpaper Rotatorwith overlay, Loop through a folder of wallpaper & another of overlay, then create a combined image and set it as the wallpaperE-Mail passthru, Send any file, even executables via e-mail as plain text. The recipient can then later re-construct them.Slideshow widget, A slideshow widget similar to the Vista onePredictive typing using the Numpad, Predictive typing using the numpad of a keyboar similar to that on a mobile phone (the key is the .t16 file).PSTools Front End, For Remote Admin. Just makes life a lot easier (Demonstrates executing external programs and passing parameters, tabbed form Handling STDIN/STDERR)FTP Helper application Up and Download files from an FTP server demonstrates this and Tooltray TipsShow a Map of your Post-codes/Zip Codes, Uses the Clipboard, Hotkeys, the system tray (incl. menus)Disc/CD/DVD Catalogue, Ideal for all those Covermount Discs (Demonstrates Array handling, executing DOS programs, handling STDIN/STDOUT recursive directory reads, file searching.)YAST , Yet another Stopwatch/Timer (Uses a hotkey, Copies to clipboard, handles multiple events and stays on top)Keyboard Status Indicator , Indicates status of NumLock, Caps Lock and Scroll Lock Keys, demonstrates API calling & System tray Icon Toggling
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...