Page 1 of 1

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

Posted: Fri Jun 26, 2015 4:20 pm
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

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

Posted: Fri Jun 26, 2015 4:44 pm
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