Grab the text under the cursor
Hey folks,
I have a jtextarea that has some text in it.
I need to know how i can get the text that is displayed when the cursor focuses on each line. any ideas
thx in advance
Not sure exactly what you mean.
If you focus on the textare you can get the caretPosition and then ask the document the text at the caret position.
You have also to methods you can use to translate between x,y coordinates and caret position: modelToView and viewToModel(don't recall the exact names but search in the api.
Eduardo.
Similar Messages
-
I recently acquired a $15 iTunes card to get apps and music. I have forgotten my security questions and I cannot buy anything HELP (I tried to reset them in the Password and Security tab but the text under the questions does not show)
Apple ID: Contacting Apple for help with Apple ID account security
http://support.apple.com/kb/HT5699?viewlocale=en_US&locale=en_US
Try the link above. Try to find a phone number for your country, call and ask for account security. -
We gave my mom an ipad mini, but the text under the icons is barely readable for the elderly. The accessibility options increase the size of contacts, email, etc, and the zoom gives an option to increase, but that is not user friendly for the elderly - 3 finger tap on/off??? Really???? For a senior with arthritis?
Does anyone know a way to increase the size of the text of the icons on the ipad?
Thanks for any insights.Try After Effects, it's perfect for keying stroke and all text characteristics.
Here's an example -
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.)
RegardsHi 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. -
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.
RegardsHi 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 to change the text under RECORD WORKING TIME IN ESS.
Hi,
How to change the text under RECORD WORKING TIME in ESS.
Is there any setting at page or iview level?
Please help me.
Regards,
Thirun.Hi,
If it is standard business package ,then check home page framework
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b0e3a488-cdc2-2b10-209b-e01a0ed934b4
Regards
Koti Reddy -
Getting the name of the window under the mouse cursor
Hello All
Is there a way to receive a window name of the window under the mouse cursor? All windows in interest are LV windows, and all of them works separatelly. After the mouse click I would like to get the window name.
The reaso nfor asking is that I have a sequence of setting of different windows. I need to create a doccumentation and I need all windows front panels send to MS Word.
I thought that my application can read the window names and by using the LVwutil32 get the front pannels of the windows and send them to MS Word.
Problem is that in the library I do not have a function like "Window on Top.vi" or something like that.
Anyways, the problem for me now is how to get an active (most top) window
name?
thanks
PawelHi Pawel,
I found the following VI in my "trunk" that I made a while ago (written in LV6.0.2). It returns the active VI (and thereby) the Window name. Mayby you have some use of it, but I believe this is what you want. Only works for Windows though.
Regards,
Mattias Ericsson
Endevo, Sweden
Attachments:
WindowsUtil_GetActiveVIWindowName.vi 54 KB -
How to allign text under the barcode with same width?
Hi,
I need to put a barcode in my form with the human readable text right under it and more importantly,irrespective of the number of digits of the text number, it needs to be space out exactly equal to the barcode length.can anyone please help with text formatting here? And what if the barcode might change in future? Something like below:
IIIIIIIIIIIIIIIIIIIIIIIII
1 2 3 4 5 6 7
IIIIIIIIIIIIIIIII
1234567
Edited by: Aditi Bhandari on Nov 22, 2009 3:38 PMFor sapscripts and smart forms (what is your techno?), SAP allows you only to print barcodes (bars), not the texts corresponding to these barcodes, so you will have to implement a custom solution.
As SAP doesn't provide you the actual width of the generated barcode, you will have to determine empirically the formula.
I think it will be rather tough to use "space" characters or font size to manage the spacing between characters.
Instead, I see 2 solutions:
- send directly the text to the printer with the right Character Per Inch value : First calculate how many characters per inch you need (barcode estimated width divided by number of characters), then use print controls HEX - ENDHEX to define the instructions in printer language (for each device type you will print to). For better rendering use fixed font (COURIER, etc.) Note that it will work for printout, but not for print preview (text won't appear at all).
- second solution would be to generate text as an image if you have such a software, and print the image. It will work well in all situations. -
How can I make the text insertion caret/cursor easier to see in InDesign?
I'm using InDesign CS5, and it doesn't comply with Windows 7 Ease of Access settings regarding the text insertion caret/cursor thickness. Is there a fix for this?
P.S. QuarkXPress has the same problem, so whichever software resolves it first wins!Interesting approach. I see how that could be useful for making things like text box guides easier to see depending on the chosen colors. Unfortunately, it has no affect on the text insertion caret/cursor. It remains the same size and thickness, and it is very difficult to find regardless of how much I zoom in.
-
Last night I proofed my book before ordering. Larry L's directions were perfect. How do I correct for the missing text. All text shows with the exception of two pictures. Don't want to order the book without the text.
Try the following:
1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
User/Home/Library/ Preferences folder.
2 - delete iPhoto's cache file delete the contents the following folder:
User/Library/Containers/com.apple.iPhoto/
Data/Library/Caches/com.apple.iPhoto
3 - reboot, launch iPhoto and try again.
NOTE: For Mavericks, 10.9, go to your Home folder and use the View ➙ Show View Options menu to bring the this window:
where you can check the Show Library Folder checkbox. -
How to find the text id for the text in the sales order
Hi all,
How to find the text id for the item-text in the sales order?
There are different Text available in the sales order under item like Warehouse instruction, CSR instruction...
I want to know the corresponding Text id for the text ELECTRONIC ORDER COMMENT.
Table TTXID contains the validation of the Text id.
Please help me in knowing the way to identify the text-id from the text list..
Thanks foryour help
Suresh KumarU can fetch the texts for the items using
Read_text.
Example:
g_f_tdname = xvttp-vbeln.
g_f_obj = p_obj.
g_f_langu = 'DE'.
REFRESH g_t_lines.
CLEAR g_t_lines.
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = p_var
language = g_f_langu
name = g_f_tdname
object = g_f_obj
TABLES
lines = g_t_lines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
The Required fields are,
Text-id ,language,name,object.
Let me know if you further require help.
Regards -
Unable highllight the text in the multi-line text item in forms11g
Hi,
I using forms11g and I have a foirm which have a multilline field which are not hinghlighting the text when the cursor come there but it works fine in forms6i.
Any solution on this will highly appriciated.I using forms11g and I have a foirm which have a multilline field which are not hinghlighting the text when the cursor come there but it works fine in forms6i.Check your Forms 6i form. I'll bet you have a Current Record Visual Attribute property assigned and you missed assigning this in Forms 11g. If it is assigned, double-check the Visual Attribute (VA) group exists and/or make sure all the VA attributes are valid for Forms 11g.
Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
Chaning the text of the field name in CAT2 transaction
Hi experts,
I want to change the text of the standard field in the modifiable fields list under the worklist screen group. Is there any way to do this. If there is please let me know.
Thanks and Regards,
AshaI have looked at the code again, and here's how I think it should work (but I can't run it to proof this):
In subroutine "get_ddic_information" (include LCATSF3Z), there is logic that starts:
* read ddic for CI_CATSDB
IF add_fields EQ yx.
... this reads in TCAFI and then gets the DDIC info for each field there. Within this "if" is some code:
* bring text on dynp
uaddfield = ncats_addfi_text.
that will set the value of "CATS_ADDFI_TEXTx" where "x" is the column number. These "DATA: cats_addfi_text1 LIKE cats_addfi-field1." through to "DATA: cats_addfi_text10 LIKE cats_addfi-field10." are defined in the top include, LCATSTOP and they show in screen 2100 as the column headers in the table control for the worklist columns CATS_ADDFI-FIELD1_W -_ CATS_ADDFI-FIELD10_W, so putting values in them should fill your custom column headers.
So if you set a soft breakpoint in that "get_ddic_information" form, you should be able to see these column headers getting set for each of your CATSDB custom fields... and if they are not getting set, work out why! You could also use debug to pop a value into, say, CATS_ADDFI_TEXT1, and check it appears in the table control column header.
Jonathan -
Adjusting the Size of the Text in the Preview Window in RH8
Hello, Everyone!
I am new to the forum, but I've been lurking for a while.
We have upgraded from RoboHelp 7 to RoboHelp 8, and I have encountered some conversion issues. The primary layout type of the project is Microsoft HTML Help.
First, the text in the preview window is extremely small -- much too small to be useful to these old eyes. Has this changed in RoboHelp 8? Is there a setting somewhere that enables me to bump up the size of the preview text?
Also, I am encountering a number of spacing issues, including:
Extra space after an em dash (no spaces in version 7)
No space after a colon (there was a space in version 7)
Bullets display as numbers in the preview window, but seem to be OK in "live" version (bullets were fine in version 7)
Finally, we want to make this an AIR application, but the AIR option isn't available in the Single Source Layouts area for this project. When I create a new project, the AIR option is there. What am I missing?
Can anyone offer suggestions as to how I can fix these things? (I am not an "under the hood" kind of guy, so please don't assume I know a lot about the guts of RoboHelp.)
Thanks for any help you can offer!
clintfanHi there
When you examine the Single Source Layouts pod (View > Pods > Single Source Layouts) do you see AIR Help? If not, try right-clicking the pod and you should be able to define a new layout for AIR.
Cheers... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
Adobe Certified RoboHelp HTML Training
SorcerStone Blog
RoboHelp eBooks -
Get text under mouse cursor in any window or window screen
Hello Everybody
I want to get the word under mouse cursor from any area of window using java.
plz give me some tips or guide.
Thanks in advanceMouseInfo / PointerInfo to find the location of the mouse pointer
Robot to capture an area of the screen around the mouse pointer
Optical character recognition to read the screen capture
db
Maybe you are looking for
-
can anyone from usa receive my text using the same app from offline while I'm sending from online? suggest me some apps rerelated thank you:)
-
Account management for a J2SE application
Hi, I am looking for an open source package that allows creating and managing user accounts in a J2SE application. It should directly support log in/log out actions and does not have to be very sophisticated. Thank you for your suggestions. Regards,
-
Save /ADD Grid Control Columns Data in database
Hello All, Can any one suggest me how we add or save or update the grid control columns fields data into databases. My problem is I have 2 tabs in user defined screen Main and issue tabs . when we click the issue
-
Using sockets...
I'm trying to write a fairly simple client and server. I want them both to not try to connect until a "Connect" button is pressed in their respective GUIs. The idea is that this is a JToggleButton, which if you press it again, it stops trying to conn
-
Hi, after turning on Voice over and then turning off the i pad 2, I found that it would not turn on again as the locking code which always worked till now, 2121 is not recognised. A voice can be heard when trying to enter the 4 letter code stating