Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading and converting data on the screen on-the-fly 1

Status
Not open for further replies.

rvctips

Programmer
Jun 20, 2003
17
ES
Hi,

I have seen specific applications that 'converts' data "on-the-fly". That's it! You approach the mouse pointer to a figure and automatically it shows you the result of a prefixed conversion. If the data on the screen is 2.00 and my conversion factor is (x0.333) it will show 0.666 in a little window close to the initial figure.

Is it possible to do with VB and to apply not just to a specific application, or to text editor, but to any screen under Windows OS???

Is a big job, or just a few lines ??

Thanks,
 
All of the following contols:
CheckBox, ComboBox, CommandButton, EditBox, Grid, ListBox, OptionButton, Shape, Spinner, TextBox

support the ToolTiptext property. Try:

Text1.ToolTipText = 0.333 * Val(Text1.Text)

This will only work in your own app of course

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
THAT'S a neat trick John! I never realized that you could do manipulations of the values with the ToolTipText. Makes intuitive sense though now that you say it. Have (yet another) star!

--Bill
One may not reach the dawn save by the path of the night
--Kahlil Gibran
 
Thanks Bill! [smile]

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Thanks John for you quick answer.

I'll try to apply although my question was more in the direction of read in any application running unther Windows.

Ramon.
 
This item will work in any applications running under any Windwos OS since Win95. The only thing is that each of these applications will have to have it programmed to do this. By default, the ToolTipText value is blank. Are you looking to see if it is possible to program some type of Add-in that will enable this feature in each application? An example would help us(me) understand what you're trying to do.
 
What I'm looking for is a programm that enables the cursor reading any figure on the screen, in the same line, for instance, that when you point an icon in the desktop and it undrelines it and changes the title's colour.

Once I have read the figure I want to multiply it for a known number and show the result.

If it is possible it has to work in any application running under Windows OS.

One example would be Babylon's translator, that is able to read (and translate) any word in any application.

Ramon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top