Aim and Fire in FPS game

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

Aim and Fire in FPS game

Postby Xcessity » Mon Sep 07, 2015 10:50 am

Here is a macro that will hold down the right mouse button (RMB), wait for 200ms and then hold down the left mouse button (LMB). Usually the RMB is used to aim down sights in an FPS and the LMB fires the weapon.


Code: Select all

   <MACRO id="AimAndFire">
      <START>
         <MOUSEBUTTONINPUT button="RIGHT" behaviour="PRESS"/>
      </START>
      <MAIN>
         <WAIT time="200"/>
         <MOUSEBUTTONINPUT button="LEFT" behaviour="PRESS"/>
      </MAIN>
      <END>
         <MOUSEBUTTONINPUT button="LEFT" behaviour="RELEASE"/>
         <MOUSEBUTTONINPUT button="RIGHT" behaviour="RELEASE"/>
      </END>
   </MACRO>

Return to “Macros”