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 

Adding text data to notification area

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





PostPosted: Wed Sep 20, 2006 1:51 pm    Post subject: Adding text data to notification area Reply with quote

OS: XP
AutoHotKey Version = 1.0.44.12
Me = Big fan of AutoHotKey
Problem:

I have written a script that periodically downloads a webpage, parses it and extracts an integer number from it. I can display it using splashtext and works fine. But I want to evolve it and was thinking if it is possible show this extracted number in the system tray. System tray also dynamically displays date/time/day info. Is it also possible that I could also show my dynamically generated info in it instead of separate messagebox?

I hope problem description is clear Smile
Back to top
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Wed Sep 20, 2006 7:03 pm    Post subject: Re: Adding text data to notification area Reply with quote

Dear Ashwin, Smile

Quote:
I have written a script that periodically downloads a webpage, parses it and extracts an integer number from it.


IP Address?

Quote:
I can display it using splashtext and works fine. But I want to evolve it and was thinking if it is possible show this extracted number in the system tray.


See AHK Documentation :TrayTip

Regards, Smile
_________________
URLGet - Internet Explorer based Downloader
Back to top
View user's profile Send private message Send e-mail
ashwin
Guest





PostPosted: Thu Sep 21, 2006 5:28 am    Post subject: I am sorry but Reply with quote

Hi

Thanks for ur reply.
But my problem is different.

I wanted to display my text beside the place where current system time is displayed in the system tray.

Any idea?
Back to top
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Thu Sep 21, 2006 6:22 am    Post subject: Re: I am sorry but Reply with quote

ashwin wrote:
But my problem is different.
..
I wanted to display my text beside the place where current system time is displayed in the system tray.


Ahh! I see.. Replacing the "Start Button" with user-defined text is easy and I know how to do it .. but I am not sure about your need!

What will be the size of text? Can you be sure of the maximum length of the text string?

Regards, Smile
_________________
URLGet - Internet Explorer based Downloader
Back to top
View user's profile Send private message Send e-mail
toralf



Joined: 31 Jan 2005
Posts: 3910
Location: Bremen, Germany

PostPosted: Thu Sep 21, 2006 6:36 am    Post subject: Reply with quote

Do you want a traytip?
See command TrayTip
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
PhiLho



Joined: 27 Dec 2005
Posts: 6836
Location: France (near Paris)

PostPosted: Thu Sep 21, 2006 9:55 am    Post subject: Reply with quote

toralf, you read too fast... Smile
Right now, I don't know if this can be easily done in AHK. I know some Windows utilities that replace the clock, but I don't know how they do that.
Another solution, if the integer is small, is to use a custom icon...
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
Peter



Joined: 30 Dec 2005
Posts: 448

PostPosted: Thu Sep 21, 2006 10:29 am    Post subject: Reply with quote

PhiLho wrote:
I know some Windows utilities that replace the clock, but I don't know how they do that.
Tclock2 has source code as well, but I'm not experienced at all in Windows programming Sad
PS: it works but according to Alpha.txt of download, not everything like it should.
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6836
Location: France (near Paris)

PostPosted: Thu Sep 21, 2006 10:53 am    Post subject: Reply with quote

Interesting...
I found the original Tclock page:
Kazubon page on Tclock
Too hard to understand for me, so I used Google to translate it...
What I understand from that gibberish is we need to sub-class the clock window, to manage painting for it. The problem is that, if I understand correctly, the code for sub-classing must live in a DLL, so it can share the memory of the hijacked process.
So, no possible solution with AutoHotkey...
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
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