Move AHK scripts to new repository voussoir/ahk.

This commit is contained in:
Ethan Dalool 2020-09-21 12:20:50 -07:00
parent 034784015e
commit 436aeb8681
12 changed files with 0 additions and 234 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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
}
}
}

View file

@ -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")

View file

@ -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

View file

@ -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}

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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
}
}

View file

@ -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
}