Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Change wallpaper from script!


  • Please log in to reply
7 replies to this topic
Rajat
  • Members
  • 1904 posts
  • Last active: Jul 17 2015 07:45 AM
  • Joined: 28 Mar 2004
Here's a script to choose a random wallpaper from a given folder and place it on desktop... all image types are supported.

reqmts: Irfanview

If u've not associated the images with Irfanview then change the run command from:
run, %file%,,hide

to
run, %file%,,hide

DetectHiddenWindows, On
SetTitleMatchMode, 2

F9::
        Winkill, - IrfanView
        total = 0
        Loop, E:\stuff\Pics\Wallpaps\Gs\*.*
                total += 1
        Random, select, 1, %total%
        Loop, E:\stuff\Pics\Wallpaps\Gs\*.*
                IfEqual, A_Index, %select%, Setenv, file, %A_LoopFileFullPath%

        run, %file%,,hide
        winwait, - IrfanView,,2
        ControlSend,, ^+c, - IrfanView
        Winkill, - IrfanView
Return

MIA

CleanNews.in : Bite sized latest news headlines from India with zero bloat


  • Guests
  • Last active:
  • Joined: --
not random here.

  • Guests
  • Last active:
  • Joined: --
what, why is it killing irfan view?

automaticman
  • Members
  • 658 posts
  • Last active: Nov 20 2012 06:10 PM
  • Joined: 27 Oct 2006
How demanding is changing the wallpaper more frequently on the system (like changing each minute)? Is the last wallpaper image (which I assume is converted into .bmp) overwritten by the new one? After changing each minute how about changing each 10s?

I am asking as I have quite a lot of images of my handwritten notes with simple paper+pen it would be interesting if I could change between these... maybe together with zooming in to some part of the DIN A4 paper to be able to read the information on the paper easily. So taking notes with paper+pen could get a new meaning thanks to IrfanView, AutoHotkey and Rajat! :D

automaticman
  • Members
  • 658 posts
  • Last active: Nov 20 2012 06:10 PM
  • Joined: 27 Oct 2006
I tested the script, and, it does not work here, strangely if I press F9 twice with the right gap time in between, sometimes it works.

Superfraggle
  • Members
  • 1019 posts
  • Last active: Sep 25 2011 01:06 AM
  • Joined: 02 Nov 2004
Take a look at this thread. It may be more suited to your needs.
Steve F AKA Superfraggle

http://r.yuwie.com/superfraggle

automaticman
  • Members
  • 658 posts
  • Last active: Nov 20 2012 06:10 PM
  • Joined: 27 Oct 2006
Today I found this, and I like it.

Cristi®
  • Members
  • 45 posts
  • Last active: Feb 13 2018 11:57 PM
  • Joined: 29 Nov 2007
very nice
Posted Image