Page 1 of 1

[solved] Why doesn't this pulse macro work?

Posted: Tue Jul 21, 2015 9:06 pm
by JoyfulRogue

Code: Select all

 <MACRO id="a25">

   <MAIN repeat="x">   
   <KEYINPUT behaviour="PRESS" type="VIRTUAL_CODE" code="0x27"/>
  <KEYINPUT behaviour="RELEASE" type="VIRTUAL_CODE" code="0x27"/> 
    <WAIT time="25ms"/>
</MAIN>
 </MACRO>
In notepad its ok. In games, half the time it presses the key on activation and does not release it so instead of controlled pulse its a permanent press.

How do I fix it to always press and release correctly?

Edit: this is the fix I was looking for. Macro makers, watch and learn:

Code: Select all

  <MACRO id="APulse50">
    <START>

    </START>

    <MAIN repeat="x">
      <KEYINPUT behaviour="PRESS" type="VIRTUAL_CODE" code="0x41"/>
      <WAIT time="150"/>
      <KEYINPUT behaviour="RELEASE" type="VIRTUAL_CODE" code="0x41"/>
      <WAIT time="25"/>
    </MAIN>

    <END>
      <KEYINPUT behaviour="RELEASE" type="VIRTUAL_CODE" code="0x41"/>
    </END>
  </MACRO>
release at the end fixes it