title: Logitech G HUB script
body: <p>How can I make it so when i hold left alt and left mouse it just holds down the "L" key and then when I release left alt it goes back to the auto click script</p>
  
  <p>thanks.</p>
  
  <pre><code>EnablePrimaryMouseButtonEvents(true);
  
  function OnEvent(event, arg)
      if IsMouseButtonPressed(1) then
          repeat
              PressKey("L")
              Sleep(math.random(15, 45)) 
              ReleaseKey("L") 
              Sleep(math.random(15, 45)) 
          until not IsMouseButtonPressed(1)
      end
  end
  </code></pre>