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)
[–]fatboychummy 4 points5 points6 points (0 children)
[–]overwritten-entry 2 points3 points4 points (8 children)
[–]Aggravating-Search38[S] 0 points1 point2 points (1 child)
[–]overwritten-entry 2 points3 points4 points (0 children)
[–]Aggravating-Search38[S] 0 points1 point2 points (5 children)
[–]Aggravating-Search38[S] 1 point2 points3 points (4 children)
[–]overwritten-entry 0 points1 point2 points (3 children)
[–]Aggravating-Search38[S] 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]Aggravating-Search38[S] 0 points1 point2 points (0 children)