From 6baac54580ef5ff9254d9aa2c55a1930ec835e10 Mon Sep 17 00:00:00 2001 From: Mar Alegre Date: Wed, 17 Mar 2021 20:47:31 -0400 Subject: [PATCH] added basic script --- src/AutoSave.ahk | 24 ++++++++++++++++++++++++ src/Basic.ahk | 25 +++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 src/AutoSave.ahk create mode 100644 src/Basic.ahk diff --git a/src/AutoSave.ahk b/src/AutoSave.ahk new file mode 100644 index 0000000..cd89fd4 --- /dev/null +++ b/src/AutoSave.ahk @@ -0,0 +1,24 @@ +; Script can be directly run by or compiled into an .exe by the open-source software AutoHotkey +; https://www.autohotkey.com + +; +; Front Matter +; + +; Include general library +#Include ../lib/Prelude.ahk + +; Keep script running +#Persistent + +SetTimer, Autosave, 300000 + +Autosave: + Send {Ctrl down} + Sleep 50 + Send {s down} + Sleep 50 + Send {s up} + Sleep 50 + Send {Ctrl up} + SetTimer, Autosave, On \ No newline at end of file diff --git a/src/Basic.ahk b/src/Basic.ahk new file mode 100644 index 0000000..d262f9e --- /dev/null +++ b/src/Basic.ahk @@ -0,0 +1,25 @@ +; Script can be directly run by or compiled into an .exe by the open-source software AutoHotkey +; https://www.autohotkey.com + +; +; Front Matter +; + +; Include relevant libraries +#Include ../lib/Prelude.ahk +#Include ../lib/HoldRepeat.ahk + +; +; Hotkeys +; + +; Hold/Autoclick mouse buttons +; Holds if single click, autoclicks if double click +*!LButton UP::HoldOrRepeat("LButton",["RButton","MButton"]) +*!RButton UP::HoldOrRepeat("RButton",["LButton","MButton"]) + +; Autorun +*!w UP::Hold("w",["s"]) +*!s UP::Hold("s",["w"]) +*!a UP::Hold("a",["d","w","s"]) +*!d UP::Hold("d",["a","w","s"])