- August 14, 2013 at 1:20 pm #11261
How is it possible to implement a sequence of actions on single keyboard shortcut? For example, I’d like to have ‘Copy Line’ then ‘Delete Line’ (similar to yank @VI) on a single shortcut (let’s say Ctrl+D). So, how can I do so?
Thank you!August 14, 2013 at 4:05 pm #11262
Just record a macro (Macro->Start/Stop Macro) that does it. There is usually a default run key for the last macro recorded.
Alternatively, you can assign it to a keyboard shortcut sequence, e.g. ALT-m. For this you need to save it first, giving it a name,(ext = ‘jsee’) in the macro folder. Look-up the “Customize Macros dialog box”/Options tab for its location.
Then to assign it your own and permanent key sequence, do Tools Menu->”Properties for Current (or All if you prefer) Configuration”->Keyboard tab->Select “My Macros” in the “Category” drop-down field; choose the Macro name you gave it in the “Command” drop-down list, move the cursor to the “Press new shortcut key”, click the key sequence of your choice (See if it is not already assigned to something) and click “assign”. OK yourself all the way out!
Have fun!August 14, 2013 at 4:09 pm #11263
Record and save a macro, then assign a shortcut key to it (All Configurations Properties -> Keyboard)
Edit: Meir, you were faster than I :-)August 15, 2013 at 10:08 am #11264
Thanks! But can I do it using the java scripting?August 15, 2013 at 11:05 am #11265
A saved macro actually is a java script, isn’t it?August 15, 2013 at 11:25 am #11266
Actually I’m not familiar with the macros… Are the macros implemented using java scripting? So, after a macro recording, can I open it and see a java code? Really?August 15, 2013 at 11:59 am #11267
Yes, you can save the macro as a .jsee file and then open it and examine and change the code.August 15, 2013 at 1:01 pm #11268
You must be logged in to reply to this topic.