Post by Flipeador » 14 Dec 2015, 08:02
| = desactiva todo
←↓→ = activa el macro 1/2/3
Code: Select all
#NoEnv
SetBatchLines, -1
SetMouseDelay, -1
SetKeyDelay, -1
F4::ExitApp
~|::
Toggle := !Toggle
try Hotkey, ~LButton, Off
try Hotkey, ~^LButton, Off
try Hotkey, ~*LButton, Off
SoundPlay, % Toggle?"*64":"*84"
return
Left:: ;M1
try Hotkey, ~*LButton, Off
Hotkey, ~LButton, M2, Off
Hotkey, ~^LButton, M2, Off
Hotkey, ~LButton, M1, On
Hotkey, ~^LButton, M1, On
return
Down:: ;M2
try Hotkey, ~*LButton, Off
Hotkey, ~LButton, M1, Off
Hotkey, ~^LButton, M1, Off
Hotkey, ~LButton, M2, On
Hotkey, ~^LButton, M2, On
return
Right:: ;M3
try Hotkey, ~LButton, Off
try Hotkey, ~^LButton, Off
Hotkey, ~*LButton, M3, On
return
;---------------------------------------------------------------------------------------------------
;MACRO 1
;---------------------------------------------------------------------------------------------------
M1:
ToolTip 1
while GetKeyState("LBUTTON", "P") {
SendInput, {LBUTTON DOWN}
Random, rand, 25.48019, 35
Sleep, %rand%
SendInput, {LBUTTON UP}
Sleep, 70
}
return
;---------------------------------------------------------------------------------------------------
;MACRO 2
;---------------------------------------------------------------------------------------------------
M2:
ToolTip 2
while GetKeyState("LBUTTON", "P") {
SendInput, {LBUTTON DOWN}
Random, rand, 25.48019, 35
Sleep, %rand%
SendInput, {LBUTTON UP}
Sleep, 100.8019
}
return
;---------------------------------------------------------------------------------------------------
;MACRO 3
;---------------------------------------------------------------------------------------------------
M3:
ToolTip 3
SendInput, {LButton}
Sleep, 10
SendInput, q
Sleep, 10
SendInput, q
return
nota: para quitar el 1/2 y 3 que aparece, quitar el comando ToolTip.
Se pueden unir tantos macros como quieras, pero se me complica porque no sé en que juego lo usas, como y que teclas hace que... no tengo como testearlo.
| = desactiva todo
←↓→ = activa el macro 1/2/3
[code=autohotkey file=Untitled.ahk]#NoEnv
SetBatchLines, -1
SetMouseDelay, -1
SetKeyDelay, -1
F4::ExitApp
~|::
Toggle := !Toggle
try Hotkey, ~LButton, Off
try Hotkey, ~^LButton, Off
try Hotkey, ~*LButton, Off
SoundPlay, % Toggle?"*64":"*84"
return
Left:: ;M1
try Hotkey, ~*LButton, Off
Hotkey, ~LButton, M2, Off
Hotkey, ~^LButton, M2, Off
Hotkey, ~LButton, M1, On
Hotkey, ~^LButton, M1, On
return
Down:: ;M2
try Hotkey, ~*LButton, Off
Hotkey, ~LButton, M1, Off
Hotkey, ~^LButton, M1, Off
Hotkey, ~LButton, M2, On
Hotkey, ~^LButton, M2, On
return
Right:: ;M3
try Hotkey, ~LButton, Off
try Hotkey, ~^LButton, Off
Hotkey, ~*LButton, M3, On
return
;---------------------------------------------------------------------------------------------------
;MACRO 1
;---------------------------------------------------------------------------------------------------
M1:
ToolTip 1
while GetKeyState("LBUTTON", "P") {
SendInput, {LBUTTON DOWN}
Random, rand, 25.48019, 35
Sleep, %rand%
SendInput, {LBUTTON UP}
Sleep, 70
}
return
;---------------------------------------------------------------------------------------------------
;MACRO 2
;---------------------------------------------------------------------------------------------------
M2:
ToolTip 2
while GetKeyState("LBUTTON", "P") {
SendInput, {LBUTTON DOWN}
Random, rand, 25.48019, 35
Sleep, %rand%
SendInput, {LBUTTON UP}
Sleep, 100.8019
}
return
;---------------------------------------------------------------------------------------------------
;MACRO 3
;---------------------------------------------------------------------------------------------------
M3:
ToolTip 3
SendInput, {LButton}
Sleep, 10
SendInput, q
Sleep, 10
SendInput, q
return[/code]
[size=85]nota: para quitar el 1/2 y 3 que aparece, quitar el comando ToolTip.[/size]
[hr][/hr]
Se pueden unir tantos macros como quieras, pero se me complica porque no sé en que juego lo usas, como y que teclas hace que... no tengo como testearlo.