autohotkey script for MappedUp behind a proxy

very cool new screensaver/active desktop/rss reader MappedUp is definately my new screensaver. you choose your rss feeds and it sticks them on a world map. a sample is seen below:



however, if you are behind a proxy server that requires a username and password, the feeds do not work until you enter your credentials (it uses the same interface as IE). to solve this problem, i wrote a simple autohotkey script that will simple click "okay" when the screensaver comes on:

#Persistent
settimer,check,5000 ;checks every 5 seconds to see if screensaver is active

check:
result:=DllCall("user32.dll\SystemParametersInfo","uint",0x0072, "uint", 0, "uint*",screen_saver_active, "uint", 0 )
if(screen_saver_active) ;if screensaver is active...
{
SetTitleMatchMode, 2
ifwinexist, Connect to ;and proxy window is active
MouseClick, left, 184, 320 ;click the okay button (enter does not work)
}
return


feel free to use/modify this however you want :)

4 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. you're the biggest jerk ever for removing my comment.

    ReplyDelete
  3. This comment has been removed by a blog administrator.

    ReplyDelete
  4. This comment has been removed by a blog administrator.

    ReplyDelete