How can i create a macro that presses CTRL+X?

Post Reply
User avatar
TobiX
Posts: 16
Joined: Wed Jun 24, 2015 7:47 pm

How can i create a macro that presses CTRL+X?

Post by TobiX »

I would like to create macros for using keyboard shortcuts like CTRL+X. Do you have an example how to do this?

Btw, why not allow to type the keys in queue when creating a macro? I mean in a similar way like assigning a key function where i have to press a key.

Regards

Tobi
User avatar
Xcessity
Site Admin
Posts: 286
Joined: Sat May 16, 2015 2:23 pm
Location: Graz
Contact:

Re: How can i create a macro that presses CTRL+X?

Post by Xcessity »

Hi,

moved post to macros forums as it also applies to the KM.
A macro that presses Ctrl + X would look like this:

Code: Select all

<MACRO id="CtrlX">
  <MAIN>
    <KEYINPUT behaviour="PRESS" code="0x11"/>
    <KEYINPUT behaviour="PRESS" code="0x58"/>
    <KEYINPUT behaviour="RELEASE" code="0x58"/>
    <KEYINPUT behaviour="RELEASE" code="0x11"/>
  </MAIN>
</MACRO>
For the keys you just need the virtual key code.

A graphical user interface for a macro editor is planned. Have not yet had the time to develop this. We will see it in the future.

Best,
Markus
Post Reply