Solved

Get tooltop from tray icon

Posted on 2006-07-17
12
168 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 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
 
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now