| View previous topic :: View next topic |
| Author |
Message |
totalmig
Joined: 22 Jul 2008 Posts: 151
|
Posted: Tue Mar 31, 2009 8:43 am Post subject: Set desktop background |
|
|
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 |
|
 |
keybored
Joined: 18 Jun 2006 Posts: 343 Location: Phoenix, AZ
|
Posted: Tue Mar 31, 2009 11:46 am Post subject: can AutoHotkey ____? |
|
|
| Yes. |
|
| Back to top |
|
 |
aCkRiTe
Joined: 21 Jul 2006 Posts: 555
|
Posted: Tue Mar 31, 2009 1:33 pm Post subject: |
|
|
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 |
|
 |
totalmig
Joined: 22 Jul 2008 Posts: 151
|
Posted: Fri Apr 03, 2009 7:38 am Post subject: |
|
|
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 |
|
 |
SoLong&Thx4AllTheFish
Joined: 27 May 2007 Posts: 4999
|
Posted: Fri Apr 03, 2009 10:19 am Post subject: |
|
|
| 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 |
|
 |
totalmig
Joined: 22 Jul 2008 Posts: 151
|
Posted: Tue Apr 07, 2009 8:12 pm Post subject: |
|
|
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 |
|
 |
totalmig
Joined: 22 Jul 2008 Posts: 151
|
Posted: Sat Apr 11, 2009 11:03 am Post subject: |
|
|
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 |
|
 |
|