moved in the ahk files
This commit is contained in:
parent
f3e237b11d
commit
699a090bbd
6 changed files with 94 additions and 1 deletions
|
@ -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"}
|
36
src/modules/ahk_files/music_toggle.ahk
Normal file
36
src/modules/ahk_files/music_toggle.ahk
Normal 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
|
||||
}
|
||||
}
|
15
src/modules/ahk_files/pause_play_global.ahk
Normal file
15
src/modules/ahk_files/pause_play_global.ahk
Normal 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}
|
||||
}
|
||||
}
|
13
src/modules/ahk_files/program_opener.ahk
Normal file
13
src/modules/ahk_files/program_opener.ahk
Normal 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%
|
||||
}
|
14
src/modules/ahk_files/program_opener_debug.ahk
Normal file
14
src/modules/ahk_files/program_opener_debug.ahk
Normal 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%
|
||||
}
|
14
src/modules/ahk_files/window_activator.ahk
Normal file
14
src/modules/ahk_files/window_activator.ahk
Normal 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
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue