Originally posted by: Anandits I would like to have a command that selects the word that my cursor is in and capitalises it.
There are a few hidden assumptions in this request:
1) When you say "cursor" are you talking about the mouse pointer icon (and it hovering above the specific word)
2) or are you talking about the blinking | (vertical bar) which indicates where the insertion of the next text will occur
2a) if 2, what happens if the | is blinking immediately in front of the first letter of the word, immediately behind the last letter of the word, or somewhere in the middle of the word
3) is the word in an "editable" field (in a browser you can select a word - and, e.g., copy it - but not be permitted to paste; this would be an edge case error which would be difficult to code for)?
Your question refers to "double-clicking" which would imply 1 above. The code for 1 and 2 are dramatically different and, if 2, 2a also has quite different code depending on where the blinking | is located. Either way, I have code for all of these cases, just need to know how you plan on using the command.
-------------------------
-Edgar
DPI 15.3, 64-bit Windows 10 Pro, OpenOffice & Office 365, Norton Security, Shure X2U XLR to USB mic adapter with Audio Technica DB135 vocal mic, Asus X299-Deluxe Prime, Intel Core i9-7940X (14 core, 4.3 GHz overclocked to 4.9 GHz), G.SKILL TridentZ Series 64GB (4 x 16GB) DDR4 3333 (PC4 26600) F4-3333C16Q-64GTZ, NVIDIA GIGABYTE GeForce GTX 1060 GV-N1060G1 GAMING-6GD REV 2.0 6GB graphics card with 3 1920x1080 monitors