TVTomy wrote:Great ticker!
Thanks!
I use it at home and everything is perfect but unfortunately at the office it doesn't work (the ticker is empty). Could the reason be that we have a proxy-connection at work?
Probably, it could be your proxy requires authentication which isn't provided by default or perhaps your guided to a captive portal requiring you to agree to a company policy which sets a global access cookie. Try replacing the
UrlDownloadToVar function in the code with the one below. It uses a hidden Internet Explorer window to retrieve the RSS, but it's a lot slower, so especially the initial loading will make a difference.
Code: Select all
UrlDownloadToVar(Url){
;wb := ComObjCreate("InternetExplorer.Application") ;Low security
wb := ComObjCreate("{D5E8041D-920F-45e9-B8FB-B1DEB82C6E5E}") ;Medium security
wb.Navigate(Url)
;wb.Visible := true
while wb.busy or wb.ReadyState != 4
sleep 10
Html:=wb.document.documentElement.outerHTML
wb.quit()
Sleep,500 ;allows closing of IE before the next call
wb:=""
return Html
}
Besides this I wonder if these features are possible:
- right-click on the ticker to switch between "in background" and "always on top"
Untested, but below the line
#If, MouseOver(TickerhWnd) add
RButton::WinSet,% (TickerTopMostInsteadOfBottom:=!TickerTopMostInsteadOfBottom) ? "Topmost" : "Bottom",,ahk_id %TickerhWnd%
If think this should toggle the behavior when you right click any ticker area (even if another window is covering it
)
- mouse over for little more information (feed name, item description, item date)
I remember wanting to add this feature from the beginning -a small gui showing the item's description- and the description text is even already available in the
TickerRssUpdate function, but I didn't implement it since it couldn't make up my mind on how to trigger it (hover/click) or where to show it (fixed area/near cursor).
Let me think on it. It's been a while since I looked at this code.
- new items since previous RSS update in a different color
Nope. That requires each label having its own color. I already wanted each feed to have a separate color (groups of labels), but giving each label its own color while moving it caused weird window rendering issues. So I ended up changing the color of the entire bar when the last item of a feed moves out of view as a better-than-nothing solution.