How do i make this possible? [button programming]

  • Thread starter Rectifier
  • Start date
  • #1
Rectifier
Gold Member
313
4
Hey!
I would like to program my key on the keyboard to do a specific task. In my case, I would like it to do following:
I select a bit of text
12u6g2d.jpg

then I press the button (or combination of buttons)
and the system adds
## around the text I have selected.
BWurt3V.jpg


OS - Windows 8

Anyone that can help?
 

Answers and Replies

  • #2
DavidSnider
Gold Member
502
143
Is this for a single application or all applications? There isn't really a reliable way of doing this for any program.
Best bet is to read it from the clipboard and if it matches a specific pattern then evaluate it.

For a single application it's pretty easy. Almost every textbox implementation has a Control.SelectedText property you can read.
 

Related Threads on How do i make this possible? [button programming]

Replies
3
Views
8K
  • Last Post
2
Replies
32
Views
18K
Replies
2
Views
6K
Replies
2
Views
6K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
10
Views
2K
P
  • Last Post
Replies
10
Views
4K
Replies
5
Views
2K
  • Last Post
Replies
9
Views
2K
  • Last Post
Replies
2
Views
3K
Top