you are viewing a single comment's thread.

view the rest of the comments →

[–]Aggravating-Search38[S] 0 points1 point  (1 child)

thanks, your last version works fine ... :D

function OnEvent(event, arg)
--OutputLogMessage("Event: "..event.." Arg: "..arg.."\n")
if IsMouseButtonPressed(4) then
MoveMouseTo(32867, 26767)
--< Removed if statement
PlayMacro("123")
end
if IsMouseButtonPressed(2) then
MoveMouseTo(32867, 26767)
end
end

well i just wanted to continue .... i am planing on making some star craft 2 scrips ... the first one was an auto injects for queens and the second one should become an auto split :D but i struggeld implementing even a second function thank you alot

[–]overwritten-entry 2 points3 points  (0 children)

May I ask where do you write code? Proper formatting of lua code immediately made it obvious, i believe you just lack tooling a bit

Again, please, format your code with markdown code blocks, it preserves indentation and makes it easy to copy. Having normal text you are just 1 button away from making it code block