title: Lua MoveMouse While Pressed G button
body: <p>I have a little question for gurus. Please help me for this. I'm so new at Lua coding. Please forgive me maybe it's so easy but i didn't find any solution for this yet.</p>
  
  <p>I need to move mouse cursor while press G button of mouse. I'm using logitech G502 and i wrote a script like this for mouse;</p>
  
  <p><a href="https://i.stack.imgur.com/yNU6x.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yNU6x.png" alt="enter image description here"></a></p>
  
  <p>It's working for once time. But i want to make it repeatly while pressing 8th button of mouse. Can any have idea for this?</p>