you could try the following code for the left click:
Code:
<Hotkey ScrollLockOn LButton>
   <If MouseIsOverWindowRect WoW5 0 291 146 48>
        <SendLabel w3>
               <Key Numpad1>
   <Else>
      <SendFocusWin>
         <ClickMouse LButton Down Screen>
         
<HotkeyUp ScrollLockOn LButton>
   <If MouseIsNotOverWindowRect WoW5 0 291 146 48>
      <SendFocusWin>
         <ClickMouse LButton Up Screen>