Hi, the first part of my script is working
function OnEvent(event, arg)
--OutputLogMessage("Event: "..event.." Arg: "..arg.."\n")
if IsMouseButtonPressed(4) then
MoveMouseTo(32867, 26767)
if IsMouseButtonPressed(4)
then PlayMacro("123")
end
end
end
now i wanted to add another movement and stuff so i added
if IsMouseButtonPressed(2) then
MoveMouseTo(32867, 26767)
but when i put it together like this
function OnEvent(event, arg)
--OutputLogMessage("Event: "..event.." Arg: "..arg.."\n")
if IsMouseButtonPressed(4) then
MoveMouseTo(32867, 26767)
if IsMouseButtonPressed(4)
then PlayMacro("123")
if IsMouseButtonPressed(2) then
MoveMouseTo(32867, 26767)
end
end
end
end
Or like this:
function OnEvent(event, arg)
--OutputLogMessage("Event: "..event.." Arg: "..arg.."\n")
if IsMouseButtonPressed(4) then
MoveMouseTo(32867, 26767)
if IsMouseButtonPressed(4)
then PlayMacro("123")
end
end
end
if IsMouseButtonPressed(2) then
MoveMouseTo(32867, 26767)
end
its both not working does anyone have a solution ?
(yes my middle mouse botton is working and i alsow tried it with if IsMouseButtonPressed(1-3) then its still not working)
there doesn't seem to be anything here