AutoHotkey Community

It is currently May 26th, 2012, 4:00 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Set desktop background
PostPosted: March 31st, 2009, 9:43 am 
Offline

Joined: July 22nd, 2008, 1:49 pm
Posts: 151
Hi.

I was thinking of doing a script that changed the background of my computer everyday to a picture from a website. The website i was thinking of also changes its picture every day, so the picture would be at the same location(coordinates) at the website. My only doubt wa wether or not this could be done "hidden" so that you woulnd't have to see the program opening op the website to copy the picture.

Is this possible?


Report this post
Top
 Profile  
Reply with quote  
 Post subject: can AutoHotkey ____?
PostPosted: March 31st, 2009, 12:46 pm 
Offline

Joined: June 18th, 2006, 8:47 am
Posts: 346
Location: Phoenix, AZ
Yes.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 31st, 2009, 2:33 pm 
Offline

Joined: July 21st, 2006, 6:13 am
Posts: 558
Try doing a search for wallpaper or wallpaper changer. There are a few scripts here in the forum that do something similar to what you are looking for. Maybe they can help you out.

_________________

HTH...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 3rd, 2009, 8:38 am 
Offline

Joined: July 22nd, 2008, 1:49 pm
Posts: 151
Thanks for your answers.

The website i was thinking of is http://politiken.dk/wm/

My problem is figuring out how to get it to download that picture, since i cannot get a direct url on it and there's other pictures aswell.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 3rd, 2009, 11:19 am 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
Code:
URLDownloadToFile, http://politiken.dk/wm/, today.htm
FileRead, fHTML, today.htm
RegExMatch(fHTML, "U)http://multimedia.pol.dk/archive/.*jpg", sWallpaperUrl)
MsgBox %sWallpaperUrl%

You can then URLDownloadToFile the wallpaper and take it from there

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 7th, 2009, 9:12 pm 
Offline

Joined: July 22nd, 2008, 1:49 pm
Posts: 151
Hi everyone.

Managed to get it all working as i wanted, thanks alot to anyone who helped me. Thanks for taking the time to seperate the picture for me Hugo, that was what i had the most trouble with.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 11th, 2009, 12:03 pm 
Offline

Joined: July 22nd, 2008, 1:49 pm
Posts: 151
Hi.

I've run into a minor problem. The background changes every time i turn on the computer like i wanted, but if the computer goes standby (and so logs out of windows) it changes the background back to whatever it was before it was changed.

Anyone know whats causing?

Using DllCall("SystemParametersInfo", UInt, 0x14, UInt, 0, Str, background_file, UInt, 2)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Exabot [Bot], G. Sperotto, gamax92, Google Feedfetcher and 15 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group