Move AHK scripts to new repository voussoir/ahk.
This commit is contained in:
parent
034784015e
commit
436aeb8681
12 changed files with 0 additions and 234 deletions
|
@ -1,38 +0,0 @@
|
||||||
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
|
|
||||||
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
|
|
||||||
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
|
|
||||||
|
|
||||||
; Pressing ctrl+[ will surround the currently selected text with square brackets.
|
|
||||||
; This script was put together quickly so I could get some file renaming done.
|
|
||||||
; Use at your own risk.
|
|
||||||
|
|
||||||
^[::
|
|
||||||
|
|
||||||
original_clipboard := ClipboardAll
|
|
||||||
|
|
||||||
While(Clipboard := "")
|
|
||||||
Sleep 0
|
|
||||||
|
|
||||||
Send, ^x
|
|
||||||
Sleep, 50
|
|
||||||
ClipWait, 1
|
|
||||||
|
|
||||||
SendInput, [
|
|
||||||
Send, ^v
|
|
||||||
SendInput, ]
|
|
||||||
|
|
||||||
Sleep, 50
|
|
||||||
ClipBoard := original_clipboard
|
|
||||||
|
|
||||||
; This fixes the behavior where the ctrl key is digitally released even though
|
|
||||||
; you are still holding it down after having pressed ctrl+[.
|
|
||||||
if GetKeyState("Control")
|
|
||||||
{
|
|
||||||
Send,{CTRLDOWN}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Send,{CTRLUP}
|
|
||||||
}
|
|
||||||
|
|
||||||
return
|
|
|
@ -1,5 +0,0 @@
|
||||||
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
|
|
||||||
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
|
|
||||||
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
|
|
||||||
|
|
||||||
CapsLock::LButton
|
|
|
@ -1,5 +0,0 @@
|
||||||
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
|
|
||||||
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
|
|
||||||
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
|
|
||||||
|
|
||||||
CapsLock:: F13
|
|
|
@ -1,49 +0,0 @@
|
||||||
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
|
|
||||||
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
|
|
||||||
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
|
|
||||||
|
|
||||||
CoordMode, Mouse, Screen
|
|
||||||
|
|
||||||
Clicks(xx, yy)
|
|
||||||
{
|
|
||||||
SendEvent {Click, %xx%, %yy%}
|
|
||||||
sleep 80
|
|
||||||
}
|
|
||||||
|
|
||||||
F4::
|
|
||||||
{
|
|
||||||
MsgBox "Stopped"
|
|
||||||
Reload
|
|
||||||
}
|
|
||||||
|
|
||||||
F2::
|
|
||||||
{
|
|
||||||
MsgBox "Hold F4 to stop"
|
|
||||||
Loop
|
|
||||||
{
|
|
||||||
Clicks(630, 507) ; fish
|
|
||||||
Clicks(856, 450) ; fish
|
|
||||||
Clicks(866, 397) ; fish
|
|
||||||
Clicks(978, 530) ; fish
|
|
||||||
Clicks(1111, 471) ; fish
|
|
||||||
Clicks(1159, 460) ; fish
|
|
||||||
Clicks(725, 225) ; clicks
|
|
||||||
Clicks(725, 275) ; powersurge
|
|
||||||
Clicks(725, 328) ; crits
|
|
||||||
Clicks(725, 380) ; metal
|
|
||||||
Clicks(725, 432) ; goldclicks
|
|
||||||
Clicks(725, 485) ; ritual
|
|
||||||
Clicks(725, 640) ; reload
|
|
||||||
Clicks(725, 584) ; energy
|
|
||||||
Clicks(725, 530) ; superclicks
|
|
||||||
Clicks(210, 515) ; buyhero
|
|
||||||
Clicks(585, 515) ; over...
|
|
||||||
Clicks(585, 150) ; up...
|
|
||||||
Clicks(820, 150) ; over...
|
|
||||||
Loop 180
|
|
||||||
{
|
|
||||||
; ...and down
|
|
||||||
Clicks(820, 240) ; monster
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,7 +0,0 @@
|
||||||
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
|
|
||||||
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
|
|
||||||
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
|
|
||||||
|
|
||||||
; CTRL+SPACE pastes the clipboard as if it was typed manually.
|
|
||||||
^SPACE:: SendInput % RegExReplace(Clipboard, "\r\n?|\n\r?", "`n")
|
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
|
|
||||||
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
|
|
||||||
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
|
|
||||||
|
|
||||||
; USE CTRL + SPACE TO TOGGLE THE EFFECT ON AND OFF
|
|
||||||
^SPACE:: Winset, Alwaysontop, , A
|
|
|
@ -1,12 +0,0 @@
|
||||||
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
|
|
||||||
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
|
|
||||||
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
|
|
||||||
|
|
||||||
; I don't like any of Windows's provided IME key layouts because they use key
|
|
||||||
; combinations that I already have mapped.
|
|
||||||
; vk15 is latin/hangul toggle.
|
|
||||||
; vk19 is hanja convert.
|
|
||||||
; AppsKey is the context menu button, so combining it with right alt and ctrl is convenient for me.
|
|
||||||
|
|
||||||
>!AppsKey:: sendInput, {vk15}
|
|
||||||
>^AppsKey:: sendInput, {vk19}
|
|
|
@ -1,13 +0,0 @@
|
||||||
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
|
|
||||||
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
|
|
||||||
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
|
|
||||||
|
|
||||||
; Shift-T causes the mousewheel to scroll down.
|
|
||||||
; I used this to throw lots of dosh in Killing Floor.
|
|
||||||
MButton::
|
|
||||||
While GetKeyState("MButton", "P")
|
|
||||||
{
|
|
||||||
Click WheelDown
|
|
||||||
Sleep 20
|
|
||||||
}
|
|
||||||
Return
|
|
|
@ -1,13 +0,0 @@
|
||||||
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
|
|
||||||
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
|
|
||||||
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
|
|
||||||
|
|
||||||
; Shift-T causes the mousewheel to scroll down.
|
|
||||||
; I used this to throw lots of dosh in Killing Floor.
|
|
||||||
+T::
|
|
||||||
While GetKeyState("t", "P")
|
|
||||||
{
|
|
||||||
Click WheelDown
|
|
||||||
Sleep 20
|
|
||||||
}
|
|
||||||
Return
|
|
|
@ -1,5 +0,0 @@
|
||||||
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
|
|
||||||
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
|
|
||||||
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
|
|
||||||
|
|
||||||
Tab::LButton
|
|
|
@ -1,33 +0,0 @@
|
||||||
rapid_switch := false
|
|
||||||
|
|
||||||
~*CapsLock:: rapid_switch := !rapid_switch
|
|
||||||
|
|
||||||
~*LButton::
|
|
||||||
If rapid_switch = 1
|
|
||||||
{
|
|
||||||
Loop
|
|
||||||
{
|
|
||||||
GetKeyState, var, LButton, P
|
|
||||||
If var = U
|
|
||||||
{
|
|
||||||
Break
|
|
||||||
}
|
|
||||||
Send {LButton}
|
|
||||||
sleep 20
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
~*RButton::
|
|
||||||
If rapid_switch = 1
|
|
||||||
{
|
|
||||||
Loop
|
|
||||||
{
|
|
||||||
GetKeyState, var, RButton, P
|
|
||||||
If var = U
|
|
||||||
{
|
|
||||||
Break
|
|
||||||
}
|
|
||||||
Send {RButton}
|
|
||||||
sleep 20
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,48 +0,0 @@
|
||||||
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
|
|
||||||
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
|
|
||||||
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
|
|
||||||
|
|
||||||
; Alt-F11, Alt-F12 = sound down and up
|
|
||||||
; WINDOWS 7 USERS: You need
|
|
||||||
; `Send {Volume_Up}` instead of `SoundSet +5` and
|
|
||||||
; `Send {Volume_Down}` instead of `SoundSet -5`.
|
|
||||||
; The `SoundSet, +1, , mute` will still work okay.
|
|
||||||
|
|
||||||
vol_down(amount)
|
|
||||||
{
|
|
||||||
SoundSet -%amount%
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
vol_up(amount)
|
|
||||||
{
|
|
||||||
SoundSet +%amount%
|
|
||||||
SoundGet, sound_mute, Master, mute
|
|
||||||
if sound_mute = On
|
|
||||||
{
|
|
||||||
SoundSet, +0, , mute
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
!F11::
|
|
||||||
{
|
|
||||||
vol_down(5)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
+!F11::
|
|
||||||
{
|
|
||||||
vol_down(1)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
!F12::
|
|
||||||
{
|
|
||||||
vol_up(5)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
+!F12::
|
|
||||||
{
|
|
||||||
vol_up(1)
|
|
||||||
return
|
|
||||||
}
|
|
Loading…
Reference in a new issue