| View previous topic :: View next topic |
| Author |
Message |
ashwin Guest
|
Posted: Wed Sep 20, 2006 1:51 pm Post subject: Adding text data to notification area |
|
|
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  |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 8688
|
Posted: Wed Sep 20, 2006 7:03 pm Post subject: Re: Adding text data to notification area |
|
|
Dear Ashwin,
| 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,  _________________ URLGet - Internet Explorer based Downloader |
|
| Back to top |
|
 |
ashwin Guest
|
Posted: Thu Sep 21, 2006 5:28 am Post subject: I am sorry but |
|
|
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
|
Posted: Thu Sep 21, 2006 6:22 am Post subject: Re: I am sorry but |
|
|
| 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,  _________________ URLGet - Internet Explorer based Downloader |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3910 Location: Bremen, Germany
|
Posted: Thu Sep 21, 2006 6:36 am Post subject: |
|
|
Do you want a traytip?
See command TrayTip _________________ Ciao
toralf  |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6836 Location: France (near Paris)
|
Posted: Thu Sep 21, 2006 9:55 am Post subject: |
|
|
toralf, you read too fast...
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 |
|
 |
Peter
Joined: 30 Dec 2005 Posts: 448
|
Posted: Thu Sep 21, 2006 10:29 am Post subject: |
|
|
| 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
PS: it works but according to Alpha.txt of download, not everything like it should. |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6836 Location: France (near Paris)
|
Posted: Thu Sep 21, 2006 10:53 am Post subject: |
|
|
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 |
|
 |
|