Solved

Get tooltop from tray icon

Posted on 2006-07-17
12
170 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

808 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