commit 5bd46c4a4d4a7db49d453b513503112d3e769bc3 Author: Ethan Dalool Date: Mon Sep 21 12:19:21 2020 -0700 Initial migratory commit from voussoir/else. diff --git a/alwaysontop.ahk b/alwaysontop.ahk new file mode 100644 index 0000000..27da4cf --- /dev/null +++ b/alwaysontop.ahk @@ -0,0 +1,6 @@ +#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 \ No newline at end of file diff --git a/bracketwrap.ahk b/bracketwrap.ahk new file mode 100644 index 0000000..d6f5e88 --- /dev/null +++ b/bracketwrap.ahk @@ -0,0 +1,38 @@ +#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 diff --git a/capslock_click.ahk b/capslock_click.ahk new file mode 100644 index 0000000..d1b8555 --- /dev/null +++ b/capslock_click.ahk @@ -0,0 +1,5 @@ +#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 diff --git a/capslock_f13.ahk b/capslock_f13.ahk new file mode 100644 index 0000000..5300a83 --- /dev/null +++ b/capslock_f13.ahk @@ -0,0 +1,5 @@ +#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 diff --git a/clickerheroes.ahk b/clickerheroes.ahk new file mode 100644 index 0000000..bc820c3 --- /dev/null +++ b/clickerheroes.ahk @@ -0,0 +1,49 @@ +#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 + } + } +} \ No newline at end of file diff --git a/ctrl_space_paste.ahk b/ctrl_space_paste.ahk new file mode 100644 index 0000000..ba25ddf --- /dev/null +++ b/ctrl_space_paste.ahk @@ -0,0 +1,7 @@ +#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") + diff --git a/custom_hangul.ahk b/custom_hangul.ahk new file mode 100644 index 0000000..3001ca5 --- /dev/null +++ b/custom_hangul.ahk @@ -0,0 +1,12 @@ +#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} diff --git a/midclick_fastscroll.ahk b/midclick_fastscroll.ahk new file mode 100644 index 0000000..5b885e3 --- /dev/null +++ b/midclick_fastscroll.ahk @@ -0,0 +1,13 @@ +#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 diff --git a/rapid_t.ahk b/rapid_t.ahk new file mode 100644 index 0000000..9babf7a --- /dev/null +++ b/rapid_t.ahk @@ -0,0 +1,13 @@ +#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 \ No newline at end of file diff --git a/tab_click.ahk b/tab_click.ahk new file mode 100644 index 0000000..7f74918 --- /dev/null +++ b/tab_click.ahk @@ -0,0 +1,5 @@ +#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 diff --git a/turboclick.ahk b/turboclick.ahk new file mode 100644 index 0000000..cff8ffc --- /dev/null +++ b/turboclick.ahk @@ -0,0 +1,33 @@ +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 + } +} \ No newline at end of file diff --git a/volumecontrol.ahk b/volumecontrol.ahk new file mode 100644 index 0000000..8c2941b --- /dev/null +++ b/volumecontrol.ahk @@ -0,0 +1,48 @@ +#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 +}