0% encontró este documento útil (0 votos)
36 vistas2 páginas

Script Universal

Cargado por

Edward
Derechos de autor
© © All Rights Reserved
Nos tomamos en serio los derechos de los contenidos. Si sospechas que se trata de tu contenido, reclámalo aquí.
Formatos disponibles
Descarga como TXT, PDF, TXT o lee en línea desde Scribd
0% encontró este documento útil (0 votos)
36 vistas2 páginas

Script Universal

Cargado por

Edward
Derechos de autor
© © All Rights Reserved
Nos tomamos en serio los derechos de los contenidos. Si sospechas que se trata de tu contenido, reclámalo aquí.
Formatos disponibles
Descarga como TXT, PDF, TXT o lee en línea desde Scribd

local arma = 1

--1 r301
--2 flatline
--3 volt r99

local switch = {
[1] = function()
if IsKeyLockOn("numlock")then
--Acciones cuando numlock esta activado
if IsMouseButtonPressed(3) then
repeat
--Aqui van las acciones cuando presiono boton derecho
if IsMouseButtonPressed(1) then
repeat
--Instrucciones cuando presiono boton izquierdo
movx = [Link](-2,1)
movy = [Link](1,2)
MoveMouseRelative(0,movy)
MoveMouseRelative(movx,0)
Sleep(15)
--Fin de instrucciones cuando presionas boton izquierdo
until not IsMouseButtonPressed(1)
end
--Fin de acciones cuando presionas boton derecho
until not IsMouseButtonPressed(3)
end
--Fin de acciones cuando numlock esta activado
end
end,

[2] = function()
if IsKeyLockOn("numlock")then
--Acciones cuando numlock esta activado
if IsMouseButtonPressed(3) then
repeat
--Instrucciones cuando presionamos boton izquierdo
if IsMouseButtonPressed(1) then
ajuste = 0
repeat
--Instrucciones cuando presiono boton izquierdo
movx = [Link](1,2)
movy = [Link](1,2)
if(ajuste>42 and ajuste <71) then
movx = [Link](-2,-1)
elseif (ajuste>127) then
movx = [Link](-2,-1)
end
MoveMouseRelative(0,movy)
MoveMouseRelative(movx,0)
ajuste = ajuste+1
Sleep(15)
until not IsMouseButtonPressed(1)
end
--Fin de instrucciones cuando presionamos boton izquierdo
until not IsMouseButtonPressed(3)
end
--Fin de acciones cuando numlock esta activado
end
end,
[3] = function()
if IsKeyLockOn("numlock")then
--Acciones cuando numlock esta activado
if IsMouseButtonPressed(3) then
--Acciones si numlock y boton derecho estan activados
repeat
--Instrucciones cuando presionamos boton izquierdo
if IsMouseButtonPressed(1) then
ajuste = 0
repeat
--Instrucciones cuando presiono boton izquierdo
movx = [Link](1,2)
movy = [Link](2,3)
if(ajuste<50) then
movy = [Link](4,5)
movx = 0
elseif (ajuste>50 and ajuste <70) then
movy = [Link](1,2)
movx = [Link](-1,0)
elseif (ajuste>70) then
movy = [Link](1,2)
movx = 1
end
MoveMouseRelative(0,movy)
ajuste = ajuste+1
Sleep(20)
until not IsMouseButtonPressed(1)
end
--Fin de instrucciones cuando presionamos boton izquierdo
until not IsMouseButtonPressed(3)
end
--Fin de acciones cuando numlock esta activado
end
end
}

function OnEvent(event, arg)


--OutputLogMessage("Event: "..event.." Arg: "..arg.."\n")

if (IsKeyLockOn("numlock") and event == "MOUSE_BUTTON_PRESSED" and arg == 3)


then
--OutputLogMessage("rueda clic ")
if(arma == 3) then
arma = 0
end
arma = arma+1
--OutputLogMessage(arma .."\n")

end

seleccion = switch[arma]
if (seleccion ) then
seleccion ()
end

end

También podría gustarte