AutoHotkey Community

It is currently May 27th, 2012, 12:38 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Sun Light Map Wallpaper
PostPosted: November 2nd, 2009, 10:14 pm 
Offline

Joined: February 19th, 2009, 6:44 pm
Posts: 125
Images from www.die.net/earth/
they provide real time world sunlight map, which is excellent for a dark theme desktop wallpaper
i am currently using the Hemisphere 1152 view for my desktop
i believe they update the images every 15-30mins, so no point of putting the timer for less than 10mins
screenshot:
Image

Code:
#Persistent
Gui, +toolwindow +alwaysontop
Gui, Add, Text, x10 y10, Map Type:
Gui, Add, DropDownList, vMap x+6 y8 w80 choose1, mercator|hemisphere|mollweide|peters|rectangular
Gui, Add, Text, x10 y40, Map Size:
Gui, Add, DropDownList, x+10 y38 vSize w80 choose1, 800|1024|1152|1280|1440|1600
Gui, Add, Text, x10 y70, Update:
Gui, Add, Edit, x+18 y68 w80, 30
Gui, Add, Text, x125 y73 vmin, min
Gui, Add, Button, gP x10 y100, Preview
Gui, Add, Button, gS x+10 y100, Start
Gui, Show, x0 y0,World Sunlight Map

return
P:
Gui, submit, nohide
Settimer, Download, -1
return

S:
Gui, submit, hide
if min < 10
min = 10
time := min * 60000
Settimer, Download, %time%
return

Download:
UrlDownloadToFile, http://static.die.net/earth/%Map%/%Size%.jpg, %A_temp%\hemisphere.jpg
DllCall("SystemParametersInfo", UInt, 0x14, UInt, 0, Str, A_temp . "\hemisphere.jpg", UInt, 2)
return
 


or if u want to add this to ur 24/7 script, simply use the below format:
Code:
#Persistent
Settimer, Download, 1800000
Download:
UrlDownloadToFile, http://static.die.net/earth/hemisphere/1152.jpg, %A_temp%\hemisphere.jpg
DllCall("SystemParametersInfo", UInt, 0x14, UInt, 0, Str, A_temp . "\hemisphere.jpg", UInt, 2)
return
 

*Make sure the default display setting is Center and Black background

Doesnt the earth look beautiful?


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Cool !
PostPosted: December 3rd, 2009, 7:22 am 
Offline

Joined: October 30th, 2009, 7:32 am
Posts: 64
Location: Kerala, India
Really cool dude! awesome thinking. I suggest you add a rich GUI with some cool options, previews, & refresh time settings. It would be great if it sports a good UI. Maybe i could help

Anyway, Awesome work dude :)

_________________
Image

Don't Take Life Too Seriously,Because In The End, You Won't Escape It Alive Anyway ;)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 4th, 2009, 5:21 am 
Very interesting idea but I can't make it work. The picture is downloaded but it is not replacing my wallpaper.

I am on Windows XP, is there anything I need to change in the dll call?

Thanks!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 12th, 2009, 10:46 am 
Offline

Joined: October 30th, 2009, 7:32 am
Posts: 64
Location: Kerala, India
RocknRoller wrote:
Very interesting idea but I can't make it work. The picture is downloaded but it is not replacing my wallpaper.

I am on Windows XP, is there anything I need to change in the dll call?

Thanks!


Try this:

Code:

Download:
UrlDownloadToFile, http://static.die.net/earth/%Map%/%Size%.jpg, %A_temp%\hemisphere.jpg
DllCall("SystemParametersInfo", UInt, 0x14, UInt, 0, Str, A_temp."\hemisphere.jpg", UInt, 2)
return


_________________
Image

Don't Take Life Too Seriously,Because In The End, You Won't Escape It Alive Anyway ;)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 14th, 2009, 11:50 pm 
Offline

Joined: May 2nd, 2006, 11:16 pm
Posts: 800
Location: Greeley, CO
I have had little success with evan's script;
Aravind's suggestion fails to resolve the issue;
Any other suggestions?

_________________
Image
SoggyDog
Dwarf Fortress:
"The most intriguing game I've ever played."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 15th, 2009, 2:02 am 
Offline

Joined: October 28th, 2006, 5:01 pm
Posts: 58
I couldn't get this script to work either. So instead I downloaded this:

http://codefromthe70s.org/desktopearth_dl.aspx

seems to work well and shows cloud cover


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 15th, 2009, 2:18 am 
Offline

Joined: May 2nd, 2006, 11:16 pm
Posts: 800
Location: Greeley, CO
Thanks;
I've been running DesktopEarth for years;
I was interested in the AHK solution;
I'll keep my eyes open for a functional version of this script.

_________________
Image
SoggyDog
Dwarf Fortress:
"The most intriguing game I've ever played."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 17th, 2009, 4:38 am 
make sure u have UAC turn off
once i turn it off, the script works for me
i assume either the UrlDownloadToFile or the Dllcall needs it
well i also notice that the Dllcall is straight from the help file example script, so that should work in most user's computer, at least on my w7 32 bit @@


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 17th, 2009, 3:41 pm 
Offline

Joined: May 2nd, 2006, 11:16 pm
Posts: 800
Location: Greeley, CO
Thank you for the suggestion, but UAC was introduced with Windows Vista;
I am still running under XP.

_________________
Image
SoggyDog
Dwarf Fortress:
"The most intriguing game I've ever played."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 28th, 2010, 7:35 am 
netfun81 wrote:
I couldn't get this script to work either. So instead I downloaded this:

http://codefromthe70s.org/desktopearth_dl.aspx

seems to work well and shows cloud cover



Hallo Dude,
I tested the sw with win 7. it works well.
thank you so much.

regards


Report this post
Top
  
Reply with quote  
 Post subject: Re:
PostPosted: August 28th, 2010, 6:57 pm 
Offline

Joined: January 10th, 2009, 6:40 pm
Posts: 32
Cool, thanks!

Works perfectly on Vista.

It probably doesn't work on XP because the format of the images is jpg and SystemParametersInfo works on XP and older only with bmps.
Try converting the image before making the DllCall.

Cheers


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re:
PostPosted: August 29th, 2010, 4:07 am 
Offline

Joined: February 17th, 2008, 5:01 pm
Posts: 303
gahks wrote:
It probably doesn't work on XP because the format of the images is jpg and SystemParametersInfo works on XP and older only with bmps.
Try converting the image before making the DllCall.
I just checked and according to this MSDN page, .jpgs won't work on XP or win2k (search for "SPI_SETDESKWALLPAPER").

The code worked great for me on Windows 7. I don't normally have a desktop image, so I had to turn wallpapers on before the script would work.

I preferred the rectangular projection, though:
http://static.die.net/earth/rectangular/1600.jpg
or if you have a 1280 pixel wide monitor:
http://static.die.net/earth/rectangular/1280.jpg


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Cristi®, Exabot [Bot], Google Feedfetcher, Stigg, Yahoo [Bot] and 39 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