title: LUA script on gaming mouse doesnt work in Origin software
body: <p>Even though my Lua scripts for my gaming mouse Logitech G502 Hero work fine in Windows desktop, or every application or game I tries, they dont work on Battlefield and the Origin app.
  Custom macros work, but the scripting doesnt.</p>
  <p>Any ideas? or anyone else having the same problem?</p>
  <p>Thanks! Emmanouil Filippou</p>
  <p>Here is an example of a simple Lua script that I have tried and doesnt work.</p>
  <pre><code>EnablePrimaryMouseButtonEvents(true)
  
  function OnEvent(event, arg)
          if IsMouseButtonPressed(3)then
              repeat  
                  if IsMouseButtonPressed(1) then
                      repeat
                          MoveMouseRelative(0,5)
                          Sleep(33)
                      until not IsMouseButtonPressed(1)
                  end             
              until not IsMouseButtonPressed(3)
          end     
  end
  </code></pre>