Recognize normal text on the screen
-
-
My idea is so... The user put the cursor on a phone number from any program in the computer. He presses a Hot Key - and my program will dial the number. How do I recognize the text the cursor is on... If somebody can please bring a sample Thanks a lot
-
My idea is so... The user put the cursor on a phone number from any program in the computer. He presses a Hot Key - and my program will dial the number. How do I recognize the text the cursor is on... If somebody can please bring a sample Thanks a lot
See if
IAccessible::get_accValue()
is of any help."Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
My idea is so... The user put the cursor on a phone number from any program in the computer. He presses a Hot Key - and my program will dial the number. How do I recognize the text the cursor is on... If somebody can please bring a sample Thanks a lot
Hi, I think u need to use Text Capture GDI hook to get selected text from any application. The Word Web dictionary is using technique. thanks Nitheesh
-
See if
IAccessible::get_accValue()
is of any help."Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
I did like this
if (SUCCEEDED(AccessibleObjectFromPoint(pt, &pacc, &vtChild))) { BSTR bsName = NULL; BSTR bsValue = NULL; pacc->get_accName(vtChild, &bsName); pacc->get_accValue(vtChild, &bsValue); }
The question is - How do I get the place of the marker in a text box Thanks a lot -
My idea is so... The user put the cursor on a phone number from any program in the computer. He presses a Hot Key - and my program will dial the number. How do I recognize the text the cursor is on... If somebody can please bring a sample Thanks a lot
I've solved this problem months ago and I build an application doing exactly what you need! Now for starters, how did I solved users choice for dialing the number from screen. I've notated that user must select something (he can select the whole screen for what I'm concern) then I send commands to simulate CTRL+C action, this forces to copy all selected to an a clipboard. It is easy to get selected data from clipboard, then parse for telephone numbers. At the time I was furious and was google-ing all kind of forums for accessibility and other stuff. Getting sick only remembering! Now I'm hoping this helps you a bit, feel free to replay me! P.S. For me the key thing was introducing the 'select what you want to dial', I could not seem to find another way for achieving my gold at the time!
-
I've solved this problem months ago and I build an application doing exactly what you need! Now for starters, how did I solved users choice for dialing the number from screen. I've notated that user must select something (he can select the whole screen for what I'm concern) then I send commands to simulate CTRL+C action, this forces to copy all selected to an a clipboard. It is easy to get selected data from clipboard, then parse for telephone numbers. At the time I was furious and was google-ing all kind of forums for accessibility and other stuff. Getting sick only remembering! Now I'm hoping this helps you a bit, feel free to replay me! P.S. For me the key thing was introducing the 'select what you want to dial', I could not seem to find another way for achieving my gold at the time!
-
Anyway glad if I could help. It would be great to see final result when you do it. If you have time please send me an e-mail with brief description of yours solution! Hope to hear from you. Bye