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

Post Reply
JoyfulRogue
Posts: 10
Joined: Fri May 22, 2015 12:07 pm

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

Post by JoyfulRogue » Tue Jul 21, 2015 9:06 pm

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
Post Reply