Browse Source

added basic script

ahk-v1
Mar Alegre 4 years ago
parent
commit
6baac54580
  1. 24
      src/AutoSave.ahk
  2. 25
      src/Basic.ahk

24
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

25
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"])
Loading…
Cancel
Save