AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Set desktop background

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
totalmig



Joined: 22 Jul 2008
Posts: 151

PostPosted: Tue Mar 31, 2009 8:43 am    Post subject: Set desktop background Reply with quote

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?
Back to top
View user's profile Send private message
keybored



Joined: 18 Jun 2006
Posts: 343
Location: Phoenix, AZ

PostPosted: Tue Mar 31, 2009 11:46 am    Post subject: can AutoHotkey ____? Reply with quote

Yes.
Back to top
View user's profile Send private message
aCkRiTe



Joined: 21 Jul 2006
Posts: 555

PostPosted: Tue Mar 31, 2009 1:33 pm    Post subject: Reply with quote

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...
Back to top
View user's profile Send private message
totalmig



Joined: 22 Jul 2008
Posts: 151

PostPosted: Fri Apr 03, 2009 7:38 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
SoLong&Thx4AllTheFish



Joined: 27 May 2007
Posts: 4999

PostPosted: Fri Apr 03, 2009 10:19 am    Post subject: Reply with quote

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 Wiki FAQ
TF : Text files & strings lib, TF Forum
Back to top
View user's profile Send private message
totalmig



Joined: 22 Jul 2008
Posts: 151

PostPosted: Tue Apr 07, 2009 8:12 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
totalmig



Joined: 22 Jul 2008
Posts: 151

PostPosted: Sat Apr 11, 2009 11:03 am    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group