|
any app that can immediately translate the word under cursor
into non-english meanings
|
|
|
|
|
Please name one. I'd like to see it.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
|
Lars Dirks wrote:
Atomica does it!
Twice, even. Yes, we've established that a number of programs do it via OCR.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
have you ever heard of babylon ? www.babylon.com
it is a dictionary tool.. you load it, it is shown in the system tray. whenever you want to use it, put your cursor on any word in any window, push the right mouse button + ctrl and e' voila you got the translation / definition of this word..
i really love this program, it is very helpful if you surf english sites and english isn't your first language...
have a nice one
bernhard
"There are three roads to ruin: women, gambling and technicians. The most pleasant is with women, the quickest is with gambling, but the surest is with technicians." Georges Pompidou
|
|
|
|
|
Hi,
You MUST HOOK the following functions of GDI32.DLL
TextOut,ExTextOut,.....
After that, we will receive text .
|
|
|
|
|
could you please explain this full and clear?
thanks
|
|
|
|
|
Please don't confuse this poor guy. The app he is looking at is using OCR, I've downloaded it and had a look, and they say as much in their docs. The app in question will work if you open an image file and click on it. It works if you open an image over the net and click on it. It uses OCR, the *only* way to click on ANY word and recognise it, no matter what.
You're right, of course. If the text is being drawn we can catch where, but it's not going to do what he wants - apart from not working for pre-rendered images, keeping track of what was written where, not to mention knowing if it's been erased by FillSolidRect or something, is a nightmare in the making from start to finish.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
i appreciate what you have analyzed some app,would you please see
http://www.iciba.net/file/CIBAShare.exe;
this shared app can pick almost all the word under cursor except the words in pictures.
does it seem that this one doesnot use OCR?
regards
|
|
|
|
|
At 5 MB, if that's all it does, it's again obvious that it's not a simple task. Like I said before, if it's not OCR, it's going to do some funky stuff to get the text, figure out which word is over the mouse and then return it. Frankly, it's probably as much work as the OCR one and more prone to error.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
Hex -
U have to give more details.
1. Does it get the word under any process ? Even ones written by some random coder..
2. Does it get words in any kind of control ? eg. list box edit box, title bar, status bar etc..
3. Does it get words that have been drawn on a DC using DrawText() type methods ?
I hope u are not referring to Tooltips
Vivek
|
|
|
|
|
a:
1.it get the word under any process if the window of it is shown (enen not active)
2.it get words in any kind of control .
3.it get words that have been drawn on a DC using DrawText() type methods .
and i am not referring to tltps
|
|
|
|
|
You're dreaming.
hex wrote:
3.it get words that have been drawn on a DC using DrawText() type methods
OCR is the ONLY way to do this, the text no longer exists in memory, it is just a collection of pixels that your brain interprets as text. The computer does not.
Getting words from controls and windows is plausible through GetWindowText/GetCursorPos/GetTextExtent/etc, but it's a pretty big job.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
never be so arbitrary,i have just tested this,the app i use can pick the word drawn by DrawText(,,),and it is true that the text drawn by pdc->DrawText(,,) be conveted into bitmap?
i am not dreaming
|
|
|
|
|
hex wrote:
the app i use can pick the word drawn by DrawText(,,),
Does it have a name ? I didn't say it couldn't be done, I said 'you're dreaming', in that no-one is going to be able to provide an answer to how it is done in the confines of this forum without being general ( grab the bitmap, scan it using an OCR routine, etc. ). The OCR thing, if properly implimented, would work for any word, anywhere. It just needs to be copied off the screen DC.
hex wrote:
and it is true that the text drawn by pdc->DrawText(,,) be conveted into bitmap?
Of course it is - a DC holds a bitmap, DrawText draws text to the bitmap. I'm not sure if the ? is wrong or the word order is wrong ( it is->is it ), but if you're asking, the answer is an obvious 'yes'.
At 8 MB zipped, Babylon has room for OCR capability ( assuming that is what you use as someone else answered the question that you didn't ). But you're not going to get it from an API call. If it was that easy, an app that just did that would not be so big, nor would it have a market. It would be like a tool to set window transparency in W2000 - anyone interested who can code has almost certainly written their own in an afternoon. There must be a heap of freeware implimentations ( of the transparency thing ), because it's *easy*. What we're talking about here is hard enough that ( as I said ), a surprising number of people ask it, and I've yet to see an answer that would leave anyone who read it able to impliment it.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
From the Babylon help page:
When first using Babylon, it needs about 30 minutes CPU to get information for the OCR.
If it doesn't finish everything when it is closed then it continues from where it left of.
This is a one time thing when you install Babylon.
Babylon also takes about 30 seconds of CPU when it starts (after it finished learning).
I rest my case - like I said, the answer is OCR, and I guarentee you that is too complex a topic for you to learn it in a forum reply.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
thanks to anyone who replied to my question
|
|
|
|
|
I had tooltips working but for some reason it isnt working any more. I started a new prject just to see if i could get tool tips to work. My code in my Dialog class:
CToolTipCtrl m_ToolTip;
CControl m_Static
<p>
OnInit()
{
if(!m_ToolTip.Create(this);
{
TRACE0("ERROR!\n")
}
else
{
m_ToolTip.AddTool(GetDlgItem( GetDlgItem(IDC_STATIC_TEXT), "my text");
m_ToolTip.Activate(TRUE);
}
}
<p>
PreTranslateMessage(MSG* pMsg)
{
m_ToolTip.RelayEvent( pMsg );
return CDialog::PreTranslateMessage(pMsg);
}
<marquee>click -> A Sign of Boredom <- click
|
|
|
|
|
To add tooltips to dialog controls I do this:
In the message map I add :
ON_NOTIFY_EX(TTN_NEEDTEXT, 0, OnToolTipText) then
BOOL CMyDialog::OnInitDialog()
{
CDialog::OnInitDialog()
EnableToolTips();
return TRUE;
} and
BOOL CMyDialog::OnToolTipText(UINT, NMHDR *pNMHDR, LRESULT *)
{
TOOLTIPTEXT *pTTT = (TOOLTIPTEXT *)pNMHDR;
UINT nID = pNMHDR->idFrom;
if (pTTT->uFlags & TTF_IDISHWND)
nID = ::GetDlgCtrlID((HWND)nID);
if(nID)
{
pTTT->lpszText = MAKEINTRESOURCE(nID);
pTTT->hinst = AfxGetResourceHandle();
return(TRUE);
}
return(FALSE);
}
Now you can just add your tooltip text to your string table, giving the strings the same ID as the control it is tied to. If your control has the ID IDC_STATIC_TEXT, your text would also have the ID IDC_STATIC_TEXT.
Note : Static controls have to be created with the SS_NOTIFY style
---
It may be that your sole purpose in life is simply to serve as a warning to others.
|
|
|
|
|
If your static control is created in the dialog editor checking the SS_NOTIFY in the property box for control
will make the tooltip work.
|
|
|
|
|
Hello many people! Welcome to my question. How do my setup program copy Outlook stationary to a new persons computer? I have the HTML and GIF documents but where it I copy them to and what registry editing must be made?
Thank you and many delights for you help me. Please apologise for my bad English as my first language is not yours. Bablefish helps me.
Good bye,
Richard.
|
|
|
|
|
My app displays a modal dialog using the dialog box macro DialogBox(...), and I can't figure out how to make the dialog appear on the taskbar. Is that possible?
I normally wouldn't ask for help, but almost every programming site I go to has tutorials on just MFC programming, not straight Win32. Some day I'll take the plunge and start using MFC, but I'm trying to delay that as long as I can .
|
|
|
|
|
I think... If it's a child of the desktop window ( GetDesktopWindow() ) it'll appear on the task bar. There's prolly another way too, but that's the one i know of.
|
|
|
|
|
|
try fprintf(f,"%c",'\0')
>>>-----> MikeO
|
|
|
|
|