Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Copy shortcut
#1
In evaluating QM, I have assigned Ctrl+C to the character "c cedille" (ç) and want to assign the text copy function to Numpad1. How can I do that? [I've used these shorcuts with another keyboard program for a long time, but I now need more functionality]

Thank you,

T.
#2
you can use the keyboard detector if you're using two keyboards like me. see "Keyboard Detector Help" in QM or this post on my blog talking about my setup.
http://geeknight.blogspot.com/2005/11/30...n-pad.html

if you are only using one keyboard, go into the properties of the macro and click "keyboard" under the "trigger" tab. put your cursor in the "hot-key" field and then hit the key you want to assign.
An old blog on QM coding and automation.

The Macro Hook
#3
I want to assign Numpad1 key, Ken, but when I hit that key, QM registers End.

T.[/quote]
#4
probably cuz your "Num-Lock" isn't on.
An old blog on QM coding and automation.

The Macro Hook
#5
So far, so good... Now how do I tell this key to copy highlighted text?
#6
to copy highlighted text do this.

Code:
Copy      Help
str a
a.getsel
a.setclip

this will put it in your clipboard.
An old blog on QM coding and automation.

The Macro Hook
#7
To copy text, use Ctrl+C.

key Cc
#8
And so it does, thanks. But for pasting, I unsuccessfully tried
str a
a.setsel

What am I unclear about?
#9
Gintaras Wrote:To copy text, use Ctrl+C.

key Cc

Thanks, Gintaras, but as I mentioned in the opening message, I have already defined Ctrl+c as ç
Which is why I needed another way to copy highlighted text.

T.
#10
Keys pressed by macros are not recognized as triggers. key Cc and key Cv should work anyway.

Unless you use Ctr+C trigger in another program. You can use QM to map Ctrl+C to a character too.
#11
can you manually paste into the same area?

some window areas are not "editable" that way.
An old blog on QM coding and automation.

The Macro Hook
#12
Note: a.getsel also uses Ctrl+C.
#13
In that case how do I tell F11 to execute Ctrl+v?
#14
the same way you set Num1 to do the ctl+c
in the macro code window put
'Cv

and in the trigger window put
F11
An old blog on QM coding and automation.

The Macro Hook
#15
Thank you both. Probably more bewilderment to come as I probe further into QM.

T.


Forum Jump:


Users browsing this thread: 4 Guest(s)