moved in the ahk files

This commit is contained in:
Nickiel12 2021-12-29 21:07:41 -08:00
parent f3e237b11d
commit 699a090bbd
6 changed files with 94 additions and 1 deletions

View file

@ -10,3 +10,4 @@ workctl = "0.2.0"
ctrlc = "3.2.1"
serde_json = "1.0"
crossbeam-channel = "0.5"
inputbot = {path = "/home/nick/Documents/GitHub/InputBot"}

View file

@ -0,0 +1,36 @@
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance, force
; 5 sec
; 50 = total reps CONST
; 2 per rep
; wait of 100 milisecs
; 50/5? = 10 reps per secs?
; 1000/10 = every 100 secs.
;
; how many timer does it run?
; frequency*total_reps = run time
numPerSec := 50 / A_Args[2]
waitBetween := 1000 / numPerSec / 2 ;don't know why the /2 works, but it does
total := 50
i := 0
if (A_Args[1] == True){
while (i < total){
i++
Send {Volume_Up}
Sleep, waitBetween
}
}Else{
while (i < total){
i++
Send {Volume_Down}
Sleep, waitBetween
}
}

View file

@ -0,0 +1,15 @@
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance, force
SetTitleMatchMode, RegEx
SetTitleMatchMode, Fast
if WinExist("ahk_exe Dopamine.exe"){
if !WinActive("ahk_exe Dopamine.exe"){
WinActivate
sleep 100
Send {Media_Play_Pause}
}
}

View file

@ -0,0 +1,13 @@
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance, force
SetTitleMatchMode, RegEx
SetTitleMatchMode, Fast
If WinExist(A_Args[1])
{}else {
path := A_Args[2]
Run, %path%
}

View file

@ -0,0 +1,14 @@
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance, force
SetTitleMatchMode, RegEx
SetTitleMatchMode, Fast
If WinExist(A_Args[1])
{}else {
path := A_Args[2]
MsgBox, Opening %path%
Run, %path%
}

View file

@ -0,0 +1,14 @@
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance, force
SetTitleMatchMode, RegEx
SetTitleMatchMode, Fast
If WinExist(A_Args[1])
{
if !WinActive(A_Args[1]){
WinActivate
}
}