Keyboard commands to select a word

English main discussion
Post Reply
  • Author
  • Message
Offline
Posts: 142
Joined: Fri Aug 15, 2008 8:58 am

Keyboard commands to select a word

Post by Diamen »

Do you can ad a Keyboard commands to select a word with ctrl-space?

Offline
Posts: 147
Joined: Fri Feb 08, 2008 6:41 pm
Location: British Columbia, Canada

Post by Surveyor »

This function is already "built in" to Windows - see Help file, Appendix C (Cursor movement), although it does not involve the space bar. Ctrl-shift-left_arrow or Ctrl-shift-right_arrow should select words.

- Surveyor

Offline
Posts: 142
Joined: Fri Aug 15, 2008 8:58 am

Post by Diamen »

Do it is possibile use the Hotkeys AkelPad plugin to set word select to ctrl-space ?
With Ctrl-shift-right_arrow I have to use both hands, right and left, instead with ctrl-space i can only use the left hand.
This operation is a task that often.

Offline
Site Admin
Posts: 6311
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »

Scripts plugin + SelNextWord.js

and add command to a Hotkeys plugin:
Name: SelNextWord
Command: Call("Scripts::Main", 1, "SelNextWord.js", "", 0)
Hotkey: Ctrl+Space

Offline
Posts: 142
Joined: Fri Aug 15, 2008 8:58 am

Post by Diamen »

Instructor wrote:[url=viewtopic.php?t=240]
Hotkey: Ctrl+Space
Ty, it is nice.
But i'm not able to assign Ctrl+Space.


And it select not all word but from position to word end.
f.e.
prev[cursor]ious
it select:
ious

To solve this replace the last line with:

Code: Select all

WshShell.SendKeys("^{RIGHT}^+{LEFT}");
Post Reply