I'm trying to have two inputs that will lead to one output. This is so I can use an ability in a game thanks if you can help.
function OnEvent(event, arg)
if event == "MOUSE_BUTTON_PRESSED" and arg == 2 then --set flag for mb2
mb2_pressed = true
elseif event == "MOUSE_BUTTON_RELEASED" and arg == 2 then --set flag for mb2=false
mb2_pressed = false
else if event == "LSHIFT_BUTTON_PRESSED" and arg == 1 then
leftshift_pressed = true
else if event == "LSHIFT_BUTTON_RELEASED" and arg == 1 then
leftshift_pressed = false
end
end
if leftshift_pressed and if mb2_pressed then
presskey("9")
Sleep(50)
releasekey("9")
end
end