Solved

Get tooltop from tray icon

Posted on 2006-07-17
12
176 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month4 days, 3 hours left to enroll

630 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