local skill_1 = "Q";
local skill_2 = "W";
local skill_3 = "D";
local skill_4 = "F";
local skill_5 = "5";
local Time_1=520;
local Time_2=660;
local Time_3=2020;
local Time_4=880;
local Time_R=2880;
local LoopX = 10;
EnablePrimaryMouseButtonEvents (true)
function OnEvent(event, arg, family)
if (event == "MOUSE_BUTTON_RELEASED" and arg == 6) then
Switching_cycle()
end
end
function Switching_cycle()
if (IsKeyLockOn("capslock")) then
end
Num_Key_1 = 0
Num_Key_2 = 0
Num_Key_3 = 0
Num_Key_4 = 0
Num_Key_5 = 0
while (IsKeyLockOn("capslock")) do
Sleep(10)
Num_Key_1 = Num_Key_1 + 1
Num_Key_2 = Num_Key_2 + 1
Num_Key_3 = Num_Key_3 + 1
Num_Key_4 = Num_Key_4 + 1
Num_Key_4 = Num_Key_4 + 1
Num_Key_5 = Num_Key_5 + 1
if ((Num_Key_1*LoopX) == Time_1) then
PressAndReleaseKey(Skill_1)
Num_Key_1 = 0
end
if ((Num_Key_2*LoopX) == Time_2) then
PressAndReleaseKey(Skill_2)
Num_Key_2 = 0
end
if ((Num_Key_3*LoopX) == Time_3) then
PressAndReleaseKey(Skill_3)
Num_Key_3 = 0
end
if ((Num_Key_4*LoopX) == Time_4) then
PressAndReleaseKey(Skill_4)
Num_Key_4 = 0
end
if ((Num_Key_5*LoopX) == Time_R) then
PressAndReleaseKey(Skill_5)
Num_Key_5 = 0
end
end
end