How to Grab a word under the cursor within MS Word using VSTO ?

MS Word can grab a word under the cursor.
You can find this function at "Review tab > Translation group > Mini translator".
If you hoover mouse over a word, it automatically grabs the word under cursor.
So, this is inside ONLY function ? Is there any way to use the same function user like me ?
Show me the way please.
(I do not need to translate it. I just need to grab it easily and quickly.)
Regards

Hi Guys,
Let's clarify your requirements. Per my understanding, you want to get the related word or words under the cursor using VSTO.
I assume I understand your requirement corrrectly. Per my experiences, I would suggest you try OCR. I remembered I post the same idea in your another thread.
Generally, there are two steps.
1. Get the screenshot under the cursor. Note: The screenshot range isn't large.
2. Get the word from the screenshot. You will use OCR.
That's my solution.
But it's very complex. not very easy to achieve. It needs some knowleges about arithmetic.
Hope this can help you.
Regards,
The future belongs to those who believe in the beauty of their dreams.

Similar Messages

  • Reading the word under the cursor within MS Word

    I saw a very interesting article yesterday.
    Reading the word under the cursor
    And confirmed it today. Yes, it works fine with me.
    But, it works only with Notepad.
    It, even, does not work with Visual Studio itself.
    (Of course not with Notepad++ too.)
    Now. Simple asking.
    Can you show me how to do it within MS Word using VSTO ?
    I am with Word 2010.
    Regards

    Hi Using_Word_Everydai,
    >>You do not need to consider any kind of method within VBA (as your explanations) or do not calculate the location of caret (as your explanations). <<
    I would explian more detail about VBA and VSTO. Based on my understanding, we can automate Word application using Word object model in VBA and Word PIAs in VSTO solution. And there is tiny difference on the API, that the reaseon I provide a VBA demo.
    >>Reading the word under the cursor within MS Word<<
    Here is the code that for your reference to achieve the goal in VSTO solution(application level add-in):
    MessageBox.Show(Globals.ThisAddIn.Application.Selection.Range.Words[1].Text);
    >>
    Now, I have three steps.
    1. Move to there.
    2. Press "Alt_key"
    3. Click Mouse button.<<
    I am still not able to under the secnario you are handling exactly. Based on my understanding, if we want to grab the wrod in the document, we need to move the mouse click the word in the document then we can call the code above to grabe the Word under the
    cursor.
    For example, we can custom the ribbon of Word and add a custom button. Then click the word we need to grab then click the custom button to get the word.
    If I misunderstood, please feel free to let me know.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do I stop the spinning wheel that replaced the cursor in a Word document?

    How do I stop the spinning wheel that replaced the cursor in a Word document?

    Something is causing Word to lock up.  Restart the laptop and/or reinstall Office/Word to fix the instability.  Maybe even a bad plugin or document could be causing this if it's only happening when you open a particular doc.

  • How can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,-

    how can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,…"

    It sounds like if you open Preferences in Word there will be a place where you can specify where to store autorecover files. Right now it sounds like it's pointing to somewhere that doesn't exist.

  • Drag and drop not working.  When trying to move a cell or icon the shadow of the cell or icon being moved appears under the cursor but can't be released causing a freeze of function within the program.  Happens in finder numbers and firefox

    Drag and drop not working.  When trying to move a cell or icon the shadow of the cell or icon being moved appears under the cursor but can't be released causing a freeze of function within the program.  Happens in finder numbers, firefox, and when trying to move any file from the downloads folder.
    This is a serious pain.
    Please help.
    WB

    Yes, all I can tell you is that Finder does not have that function in ML. Your system is "working as expected".
    You can file feedback here.

  • How can I get rid of the added / preset  text words included in my text messages.  It always says something like "Please call back at

    How can I get rid of the added / preset  text words included in my text messages.  It always says something like "Please call back at ###-####."

        JenJenTen,
    I understand that having a preset text that you did not want can be a bit frustrating when sending out text. To clarify, is the preset message like a signature at the end of your text? Does this only happen in text messages or when your send emails also? Is your SMS delivery confirmation on? Messaging>Settings>SMS delivery confirmation.
    LindseyT_VZW
    Follow us on Twitter @VZWSupport

  • I have Speedgrade CS6 installed on my Mac and i have problems renaming my layers when I am grading. I was wondering if anybody can tell me how to rename my layers(Under the look tab). If not, is it because thins is not possible in Speedgrade CS6.

    I have Speedgrade CS6 installed on my Mac and i have problems renaming my layers when I am grading. I was wondering if anybody can tell me how to rename my layers(Under the look tab). If not, is it because this is not possible in Speedgrade CS6.

    No you can't. Renaming grading layers is a features since version 7 a.k.a. CC. Time to upgrade?

  • HT204370 Hi, How can I get Hidalgo & Under the Tuscan Sun & the 13th Warrior - to buy in HD ??

    Hi,
    How can I get Hidalgo & Under the Tuscan Sun & the 13th Warrior - to buy in HD, in Itunes ??

    Whether a film is available in a country's store, and what format(s) that it's in, is the film studios choice. You can try requesting that the HD versions be added, but ultimately it's the film studio that will have to provide it and grant Apple a license for your country : http://www.apple.com/feedback/itunes.html

  • Numbers 3.2 has changed too much, it doesn't work with my project anymore. How do I revert back to the previous version I was using?

    Numbers 3.2 has changed too much, it doesn't work with my project anymore. 1) The sheet panels used to be on the left hand side and easily reviewable and searchable, but now they are on the top and it's harder to find a specific folder without scrolling (too time consuming), 2) I used to be able to duplicate a folder within my sheet panel window by simply clicking on a folder and hitting Command D, but that doesn't work now so it looks like I'll have to spend even more time to recreate the same tables that used to be easily duplicated, and 3) I can't choose fill colors that matched my project anymore because there are only limited choices available now. And these are only the changes that I'm aware of. I am very disappointed and frustrated. Whatever the motivation was to limit Numbers 3.2, I want the previous version back. How do I revert back to the previous version I was using?

    The sheet panels used to be on the left hand side and easily reviewable and searchable, but now they are on the top and it's harder to find a specific folder without scrolling (too time consuming),
    You can scroll more quickly between sheets if you don't use the left-right triangles, but instead move the cursor up into the bands with the "tabs" and drag right or left.
    Also, if you have a lot if sheets for which you want a quick vertical list, then you can try the following have something like this pop up (showing your sheet names automatically) whenever you hit a keyboard shortcut (in my case shift-command-j):
    This is done via a Jump to Sheet Automator Service (Dropbox download).  To install just doubleclick the .workflow package and (if needed) click 'Download Anyway' in System Preferences > Privacy & Security.
    This will cause a new item to appear in your Numbers > Services menu.  Then, if you want a keyboard shortcut, go here in System Preferences and add one:
    You can rename or remove the service by holding down the option key in Finder and choosing Go > Library > Services. You can also view the AppleScript contaned within the service by opening the .workflow package in Automator.
    This particular service jumps to the first cell of the first table of the sheet you choose from an automatically generated list of all sheets in the current document.
    SG

  • My kids desabled my mini ipad after several tries to log in.  My computer that I used to sincronize it doesn't work anymore and i can't connected to itunes.. How can i restart it without the actual computer that I used before??

    My kids desabled my mini ipad after several tries to log in.  My computer that I used to sincronize it doesn't work anymore and i can't connected to itunes.. How can i restart it without the actual computer that I used before??

    You can use any computer but your data will be lost if you have no backup.

  • Acrobat 9.5 - use Touchup text Tool to edit PDF. Updates do not display. But, if I "save as" Word doc, the edits appear in Word. This feature worked in earlier versions of 9.x patches.

    Acrobat 9.5 - use Touchup text Tool to edit PDF. Updates do not display. But, if I "save as" Word doc, the edits appear in Word. This feature worked in earlier versions of 9.x patches.

    I have a suspicion you're working with a scanned document that has had OCR run to recognize the text. The recognized text may be stored on an invisible layer above the image of the text, and that is what you're toucing up. It's invisible, so you don't see it, but retains the changes, so exporting produces the new edits.
    When you run OCR to recognize scanned text,, try using the ClearScan option, instead of Searchable Text. See this help page on Acrobat (this is for version X, but still applies):
    Adobe Acrobat X Pro * Recognize Text - General Settings dialog box
    mh++

  • I've lost my iPhone 4... How can I find it when the device is offline when using "find my iPhone app"????? Any way of getting a location from it????

    I've lost my iPhone 4... How can I find it when the device is off linesmen using "find my iPhone app"????? Any way of getting a location from it?????

    No. It must be online in order to locate it.
    What To Do If Your iDevice Is Lost Or Stolen
    iPhone, iPod Touch, and iPad
    If you activated Find My Phone before it was lost or stolen, you can track it only if it is connected to the Internet by Wi-Fi or cellular. What you cannot do is track your device using a serial number or other identifying number. You cannot expect Apple or anyone else to find your device for you. You cannot recover your loss unless you insure your device for such loss. It is not covered by your warranty.
    If your iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should have done in advance - before you lost it or it was stolen - and some things to do after the fact. Here are some suggestions:
    This link, Re: Help! I misplaced / lost my iPhone 5 today morning in delta Chelsea hotel downtown an I am not able to track it. Please help!, has some good advice regarding your options when your iDevice is lost or stolen.
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T. Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. iCloud- Use Lost Mode
      6. What to do if your iOS device is lost or stolen
      7. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      8. Find My iPhone
      9. Report Stolen iPad | Stolen Lost Found Online
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on iCloud
      3. OS X Lion/Mountain Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)

  • How can I get rid of the message that I am using a trial version of Photoshop CC even after becoming a paying member for Photoshop CC and Lightroom ?

    After having payed fo an account for one year for Photoshop CC and Lightroom 5 i keep getting the message ,that I am using a trial version of Photoshop CC.
    Lightroom on the other hand is not functioning in a trial version !
    Could anyone tell me how I can start working with Photoshop CC while not in trial mode ?
    Peter

    I Don’t know how I di dit, but when I started Photoshop this mornig all of a sudden it worked.
    I am happy now and thank you for your efforts.
    Regards
    Peter Hordijk
    Van: Rajshree 
    Verzonden: woensdag 21 mei 2014 19:04
    Aan: Peter Hordijk
    Onderwerp:  How can I get rid of the message that I am using a trial version of Photoshop CC even after becoming a paying member for Photoshop CC and Lightroom ?
    How can I get rid of the message that I am using a trial version of Photoshop CC even after becoming a paying member for Photoshop CC and Lightroom ?
    created by Rajshree <https://forums.adobe.com/people/Rajshree>  in Adobe Creative Cloud - View the full discussion <https://forums.adobe.com/message/6398343#6398343>

  • I want to check that how many users are connected to the wifi which i m using at present

    i want to check that how many users are connected to the wifi which i m using at present???

    Go to Utilities > Airport Utillity
    If you click on your router it should show you the "wireless clients" that are connected

  • How do I sort songs in the iTunes store?  You used to be able to click on the column header to sort the column (ie Popularity)?

    How do I sort songs in the iTunes store?  You used to be able to click on the column header to sort the column (ie Popularity)?

    It seems this is a "backwards" upgrade from Apple in their iTunes 11 release....like you, I used to use that function in the iTunes store to sort through and decide which song version to purchase.   (For a large returned list of songs...see all...then sort by any of the headers, including Popularity...this functionality is now gone.)  
    The iPad always suffered from this...was never able to sort on those same column headers with an iPad.   It seems, this new iTunes release killed that functionality on the Mac as well.
    Just one of the few things that went wrong with number 11!
    Better luck next time,

Maybe you are looking for