EXAMPLE: If i press the M6 button, my cursor go to a X place, if i press the M6 button again he goes to a Y place, how can i does this alternation ?
local TOPX, TOPY, MIDX, MIDY TOPX = 59305 -- Top side X TOPY = 54527 -- Top side Y MIDX = 61764 -- Mid lane X MIDY = 58683 -- Mid lane Y function OnEvent(event, arg) for n = 1,2 do if event == "MOUSE_BUTTON_RELEASED" and arg == 6 then MoveMouseTo(MIDX, MIDY); for n = 2,4 do if event == "MOUSE_BUTTON_RELEASED" and arg == 6 then MoveMouseTo(TOPX, TOPY); end end end end end https://stackoverflow.com/questions/66756180/how-i-use-the-same-keypress-for-2-variableslua March 23, 2021 at 09:52AM
没有评论:
发表评论