Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Get tooltop from tray icon

Posted on 2006-07-17
12
Medium Priority
?
178 Views
Last Modified: 2010-04-30
how can i get (read) the tooltip from the tray icon from an other program?
0
Comment
Question by:Mark_FreeSoftware
  • 6
  • 6
12 Comments
 
LVL 9

Expert Comment

by:Rob_Jeffrey
ID: 17138369
Usually the text that pops up when you hover over an icon that is beside the clock is generated during a mouse move event.

There is no standard way - like VBs ToolTip property - to have this effect on tray icons.  As a result - there is no standard way to collect this data from a program.
It is probably different between each and every program.

Perhaps there is another way to gather this info.  What program are you trying to get data from?  What data do you want - perhaps you can get it through an API call directly yourself.

Rob.
0
 
LVL 9

Accepted Solution

by:
Rob_Jeffrey earned 2000 total points
ID: 17138408
Geeze - check this question out http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_21922224.html

This may be what you are after if it is stored in the registry.
0
 
LVL 13

Author Comment

by:Mark_FreeSoftware
ID: 17138504

i want to read the number of email messages from gmail notifier

gonna take a look at that link
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 13

Author Comment

by:Mark_FreeSoftware
ID: 17149549

that registry value is not updating,

it says no unread messages for gmail notifier, even if i received 16 emails
0
 
LVL 9

Expert Comment

by:Rob_Jeffrey
ID: 17149619
I don't know what program updates it or if you can tell the software (whatever it is) to update before you read the registry key.
Does GMail offer POP3 access to the mail boxs?
0
 
LVL 13

Author Comment

by:Mark_FreeSoftware
ID: 17149667

>>I don't know what program updates it or if you can tell the software (whatever it is) to update before you read the registry key.
i did look at it in regedit, and it did not change

>>Does GMail offer POP3 access to the mail boxs?
yeah, but i thought it was maybey easier to read the tooltip from the gmail notifier (i have it running all the time)
0
 
LVL 9

Expert Comment

by:Rob_Jeffrey
ID: 17151229
Probably a dumb question, but did you refresh (F5) the view of the registry key if you used regedit.exe to see the key?
I havn't tested this out so I don't know - I didn't know about the key until I came across it in the other question.
Unless that key does work - the easiest way to determine how many messages (if any) you have in your GMail account would be to log in to the POP3 server and get a count.  Trying to find out how to talk to the program that runs beside the clock could be a lengthy hack unless it is well documented some where.
0
 
LVL 13

Author Comment

by:Mark_FreeSoftware
ID: 17155713

it isnt a dumb question, but i tried already

since i know the name of the exe, (gnotify.exe) i can find the handle to it

is it possible to make some use of this?
0
 
LVL 9

Expert Comment

by:Rob_Jeffrey
ID: 17155728
Unless the application provides an interface for the data you are looking for you will need to find a way to forcefully pull the data out.

In your situation - I recommend logging into the POP3 server and getting an email count that way.
0
 
LVL 13

Author Comment

by:Mark_FreeSoftware
ID: 17155980

too bad :(

//

thanks for your help

i'm going to award points to your second comment, because it is indeed the data i asked for
that windows doesnt update properly isnt your fault


mark
0
 
LVL 9

Expert Comment

by:Rob_Jeffrey
ID: 17156406
http://vbaccelerator.com/codelib/submit/e-checker.zip

Here is a working VB program that does what you seem to want.
(Code and all)
0
 
LVL 13

Author Comment

by:Mark_FreeSoftware
ID: 17157859

it doesnt work


i just discovered gmail uses ssl
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question