Commands fixes + New commands
This commit is contained in:
parent
1033840325
commit
fc764c0c85
60 changed files with 404 additions and 103 deletions
|
|
@ -8,6 +8,4 @@ RegRead, BrowserFullCommand, HKEY_CLASSES_ROOT, %BrowserKeyName%\shell\open\comm
|
|||
StringGetPos, pos, BrowserFullCommand, ",,1
|
||||
pos := --pos
|
||||
StringMid, BrowserPathandEXE, BrowserFullCommand, 2, %pos%
|
||||
Run, % BrowserPathandEXE
|
||||
|
||||
|
||||
Run, % BrowserPathandEXE
|
||||
|
|
@ -3,4 +3,9 @@
|
|||
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
|
||||
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
|
||||
|
||||
Run C:/Program Files (x86)/Google/Chrome/Application/chrome.exe "https://google.com"
|
||||
#Include _include.ahk
|
||||
|
||||
args = %1%
|
||||
path := DefaultBrowser()
|
||||
|
||||
Run, %path% %args%
|
||||
Binary file not shown.
|
|
@ -1,6 +0,0 @@
|
|||
#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.
|
||||
|
||||
Run C:/Program Files (x86)/Google/Chrome/Application/chrome.exe "https://youtube.com"
|
||||
19
src-tauri/commands/browser/ahk/_include.ahk
Normal file
19
src-tauri/commands/browser/ahk/_include.ahk
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
DefaultBrowser() {
|
||||
; Find the Registry key name for the default browser
|
||||
RegRead, BrowserKeyName, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.html\UserChoice, Progid
|
||||
|
||||
; Find the executable command associated with the above Registry key
|
||||
RegRead, BrowserFullCommand, HKEY_CLASSES_ROOT, %BrowserKeyName%\shell\open\command
|
||||
|
||||
; The above RegRead will return the path and executable name of the brower contained within quotes and optional parameters
|
||||
; We only want the text contained inside the first set of quotes which is the path and executable
|
||||
; Find the ending quote position (we know the beginning quote is in position 0 so start searching at position 1)
|
||||
StringGetPos, pos, BrowserFullCommand, ",,1
|
||||
|
||||
; Decrement the found position by one to work correctly with the StringMid function
|
||||
pos := --pos
|
||||
|
||||
; Extract and return the path and executable of the browser
|
||||
StringMid, BrowserPathandEXE, BrowserFullCommand, 2, %pos%
|
||||
Return BrowserPathandEXE
|
||||
}
|
||||
|
|
@ -2,7 +2,6 @@ list:
|
|||
- command:
|
||||
action: ahk
|
||||
exe_path: ahk/Run browser.exe
|
||||
exe_args:
|
||||
voice:
|
||||
sounds:
|
||||
- ok1
|
||||
|
|
@ -11,13 +10,14 @@ list:
|
|||
phrases:
|
||||
- открой браузер
|
||||
- запусти браузер
|
||||
- открой гугл хром
|
||||
- открой хром
|
||||
- гугл хром
|
||||
|
||||
- command:
|
||||
action: ahk
|
||||
exe_path: ahk/Run google.exe
|
||||
exe_path: ahk/Run website.exe
|
||||
exe_args:
|
||||
- http://google.com
|
||||
voice:
|
||||
sounds:
|
||||
- ok1
|
||||
|
|
@ -26,14 +26,14 @@ list:
|
|||
- ok4
|
||||
phrases:
|
||||
- открой гугл
|
||||
- гугл
|
||||
- запусти гугл
|
||||
- перейди в гугл
|
||||
|
||||
- command:
|
||||
action: ahk
|
||||
exe_path: ahk/Run youtube.exe
|
||||
exe_path: ahk/Run website.exe
|
||||
exe_args:
|
||||
- http://youtube.com
|
||||
voice:
|
||||
sounds:
|
||||
- ok1
|
||||
|
|
@ -43,4 +43,20 @@ list:
|
|||
phrases:
|
||||
- открой ютуб
|
||||
- ютуб
|
||||
- запусти ютуб
|
||||
- запусти ютуб
|
||||
|
||||
- command:
|
||||
action: ahk
|
||||
exe_path: ahk/Run website.exe
|
||||
exe_args:
|
||||
- https://translate.google.com
|
||||
voice:
|
||||
sounds:
|
||||
- ok1
|
||||
- ok2
|
||||
- ok3
|
||||
- ok4
|
||||
phrases:
|
||||
- открой переводчик
|
||||
- переводчик
|
||||
- запусти переводчик
|
||||
31
src-tauri/commands/calculator/command.yaml
Normal file
31
src-tauri/commands/calculator/command.yaml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
list:
|
||||
- command:
|
||||
action: cli
|
||||
cli_cmd: calc
|
||||
voice:
|
||||
sounds:
|
||||
- ok1
|
||||
- ok2
|
||||
- ok3
|
||||
phrases:
|
||||
- открой калькулятор
|
||||
- покажи калькулятор
|
||||
- запусти калькулятор
|
||||
- калькулятор
|
||||
|
||||
- command:
|
||||
action: cli
|
||||
cli_cmd: taskkill
|
||||
cli_args:
|
||||
- /f
|
||||
- /im
|
||||
- CalculatorApp.exe
|
||||
voice:
|
||||
sounds:
|
||||
- ok1
|
||||
- ok2
|
||||
- ok3
|
||||
phrases:
|
||||
- закрой калькулятор
|
||||
- отключи калькулятор
|
||||
- выключи калькулятор
|
||||
7
src-tauri/commands/jarvis/ahk/reboot.ahk
Normal file
7
src-tauri/commands/jarvis/ahk/reboot.ahk
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
WinKill, AHK_exe jarvis-app.exe
|
||||
Process, Close, jarvis-app.exe
|
||||
sleep 3000
|
||||
Run shell:AppsFolder\com.priler.jarvis
|
||||
sleep 2000
|
||||
WinMinimize jarvis-app
|
||||
WinMinimize Jarvis Voice Assistant
|
||||
BIN
src-tauri/commands/jarvis/ahk/reboot.exe
Normal file
BIN
src-tauri/commands/jarvis/ahk/reboot.exe
Normal file
Binary file not shown.
|
|
@ -1,8 +1,46 @@
|
|||
list:
|
||||
- command:
|
||||
action: ahk
|
||||
exe_path: ahk/reboot.exe
|
||||
voice:
|
||||
sounds:
|
||||
- ok1
|
||||
- ok2
|
||||
- ok3
|
||||
phrases:
|
||||
- перезагрузись
|
||||
- перезагрузи себя
|
||||
- выполни перезагрузку
|
||||
|
||||
- command:
|
||||
action: voice
|
||||
voice:
|
||||
sounds:
|
||||
- stupid
|
||||
phrases:
|
||||
- ты дурак
|
||||
- ты дебил
|
||||
- ты глупый
|
||||
- ты тупой
|
||||
|
||||
- command:
|
||||
action: voice
|
||||
voice:
|
||||
sounds:
|
||||
- thanks
|
||||
phrases:
|
||||
- спасибо
|
||||
- молодец
|
||||
- респект
|
||||
- ты супер
|
||||
- отличная работа
|
||||
- ты крут
|
||||
- ты большой молодец
|
||||
- ты реально крут
|
||||
- ты афигенный
|
||||
|
||||
- command:
|
||||
action: voice
|
||||
exe_path:
|
||||
exe_args:
|
||||
voice:
|
||||
sounds:
|
||||
- joke1
|
||||
|
|
@ -29,8 +67,6 @@ list:
|
|||
|
||||
- command:
|
||||
action: voice
|
||||
exe_path:
|
||||
exe_args:
|
||||
voice:
|
||||
sounds:
|
||||
- thanks
|
||||
2
src-tauri/commands/steam/ahk/Close steam.ahk
Normal file
2
src-tauri/commands/steam/ahk/Close steam.ahk
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
WinKill, AHK_exe Steam.exe
|
||||
Process, Close, Steam.exe
|
||||
BIN
src-tauri/commands/steam/ahk/Close steam.exe
Normal file
BIN
src-tauri/commands/steam/ahk/Close steam.exe
Normal file
Binary file not shown.
4
src-tauri/commands/steam/ahk/Open steam.ahk
Normal file
4
src-tauri/commands/steam/ahk/Open steam.ahk
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
WinKill, AHK_exe Steam.exe
|
||||
Process, Close, Steam.exe
|
||||
|
||||
Run, steam://open/bigpicture
|
||||
BIN
src-tauri/commands/steam/ahk/Open steam.exe
Normal file
BIN
src-tauri/commands/steam/ahk/Open steam.exe
Normal file
Binary file not shown.
36
src-tauri/commands/steam/command.yaml
Normal file
36
src-tauri/commands/steam/command.yaml
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
list:
|
||||
- command:
|
||||
action: ahk
|
||||
exe_path: ahk/Open steam.exe
|
||||
voice:
|
||||
sounds:
|
||||
- game_mode
|
||||
phrases:
|
||||
- включи игровой режим
|
||||
- перейди в игровой режим
|
||||
- я хочу поиграть
|
||||
- включи стим
|
||||
- запусти стим
|
||||
- открой стим
|
||||
|
||||
- command:
|
||||
action: ahk
|
||||
exe_path: ahk/Close steam.exe
|
||||
voice:
|
||||
sounds:
|
||||
- ok1
|
||||
- ok2
|
||||
- ok3
|
||||
- ok4
|
||||
phrases:
|
||||
- рабочий режим
|
||||
- вернись в рабочий режим
|
||||
- отключи игровой режим
|
||||
- выйди из игрового режима
|
||||
- выход с игрового режима
|
||||
- рабочее пространство
|
||||
- выключи игровой режим
|
||||
- выключи стим
|
||||
- отключи стим
|
||||
- выйди из стима
|
||||
- закрой стим
|
||||
15
src-tauri/commands/stop/command.yaml
Normal file
15
src-tauri/commands/stop/command.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
list:
|
||||
- command:
|
||||
action: stop_chaining
|
||||
voice:
|
||||
sounds:
|
||||
- thanks
|
||||
- ok1
|
||||
phrases:
|
||||
- всё
|
||||
- хватит
|
||||
- отмена
|
||||
- не слушай
|
||||
- перестань слушать
|
||||
- отдыхай
|
||||
- на этом всё
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
list:
|
||||
- command:
|
||||
action: voice
|
||||
exe_path:
|
||||
exe_args:
|
||||
voice:
|
||||
sounds:
|
||||
- stupid
|
||||
phrases:
|
||||
- ты дурак
|
||||
- ты дебил
|
||||
- ты глупый
|
||||
- ты тупой
|
||||
|
|
@ -1,15 +1,12 @@
|
|||
list:
|
||||
- command:
|
||||
action: terminate
|
||||
exe_path:
|
||||
exe_args:
|
||||
voice:
|
||||
sounds:
|
||||
- off
|
||||
phrases:
|
||||
- выключись
|
||||
- вырубись
|
||||
- завершить работу
|
||||
- закройся
|
||||
- отключись
|
||||
- заверши свою работу
|
||||
|
|
|
|||
|
|
@ -1,20 +0,0 @@
|
|||
list:
|
||||
- command:
|
||||
action: voice
|
||||
exe_path:
|
||||
exe_args:
|
||||
voice:
|
||||
sounds:
|
||||
- thanks
|
||||
phrases:
|
||||
- спасибо
|
||||
- молодец
|
||||
- респект
|
||||
- ты супер
|
||||
- отличная работа
|
||||
- ты крут
|
||||
- ты большой молодец
|
||||
- ты реально крут
|
||||
- ты афигенный
|
||||
- ты отец
|
||||
- вечно ты молодец
|
||||
1
src-tauri/commands/volume/ahk/Set sound.ahk
Normal file
1
src-tauri/commands/volume/ahk/Set sound.ahk
Normal file
|
|
@ -0,0 +1 @@
|
|||
SoundSet, %1%
|
||||
Binary file not shown.
1
src-tauri/commands/windows/ahk/Empty trash.ahk
Normal file
1
src-tauri/commands/windows/ahk/Empty trash.ahk
Normal file
|
|
@ -0,0 +1 @@
|
|||
FileRecycleEmpty,
|
||||
BIN
src-tauri/commands/windows/ahk/Empty trash.exe
Normal file
BIN
src-tauri/commands/windows/ahk/Empty trash.exe
Normal file
Binary file not shown.
1
src-tauri/commands/windows/ahk/Roll up windows.ahk
Normal file
1
src-tauri/commands/windows/ahk/Roll up windows.ahk
Normal file
|
|
@ -0,0 +1 @@
|
|||
WinMinimizeAll
|
||||
BIN
src-tauri/commands/windows/ahk/Roll up windows.exe
Normal file
BIN
src-tauri/commands/windows/ahk/Roll up windows.exe
Normal file
Binary file not shown.
1
src-tauri/commands/windows/ahk/Set language.ahk
Normal file
1
src-tauri/commands/windows/ahk/Set language.ahk
Normal file
|
|
@ -0,0 +1 @@
|
|||
Send, {Shift down}{Alt}{Shift up}
|
||||
BIN
src-tauri/commands/windows/ahk/Set language.exe
Normal file
BIN
src-tauri/commands/windows/ahk/Set language.exe
Normal file
Binary file not shown.
1
src-tauri/commands/windows/ahk/Task manager open.ahk
Normal file
1
src-tauri/commands/windows/ahk/Task manager open.ahk
Normal file
|
|
@ -0,0 +1 @@
|
|||
Run taskmgr.exe
|
||||
BIN
src-tauri/commands/windows/ahk/Task manager open.exe
Normal file
BIN
src-tauri/commands/windows/ahk/Task manager open.exe
Normal file
Binary file not shown.
1
src-tauri/commands/windows/ahk/blocking.ahk
Normal file
1
src-tauri/commands/windows/ahk/blocking.ahk
Normal file
|
|
@ -0,0 +1 @@
|
|||
DllCall("LockWorkStation")
|
||||
BIN
src-tauri/commands/windows/ahk/blocking.exe
Normal file
BIN
src-tauri/commands/windows/ahk/blocking.exe
Normal file
Binary file not shown.
1
src-tauri/commands/windows/ahk/clipboard.ahk
Normal file
1
src-tauri/commands/windows/ahk/clipboard.ahk
Normal file
|
|
@ -0,0 +1 @@
|
|||
Send #v
|
||||
BIN
src-tauri/commands/windows/ahk/clipboard.exe
Normal file
BIN
src-tauri/commands/windows/ahk/clipboard.exe
Normal file
Binary file not shown.
1
src-tauri/commands/windows/ahk/screenshot.ahk
Normal file
1
src-tauri/commands/windows/ahk/screenshot.ahk
Normal file
|
|
@ -0,0 +1 @@
|
|||
Send, #{PrintScreen}
|
||||
BIN
src-tauri/commands/windows/ahk/screenshot.exe
Normal file
BIN
src-tauri/commands/windows/ahk/screenshot.exe
Normal file
Binary file not shown.
1
src-tauri/commands/windows/ahk/sleep.ahk
Normal file
1
src-tauri/commands/windows/ahk/sleep.ahk
Normal file
|
|
@ -0,0 +1 @@
|
|||
DllCall("PowrProf\SetSuspendState", "int", 1, "int", 1, "int", 1)
|
||||
BIN
src-tauri/commands/windows/ahk/sleep.exe
Normal file
BIN
src-tauri/commands/windows/ahk/sleep.exe
Normal file
Binary file not shown.
124
src-tauri/commands/windows/command.yaml
Normal file
124
src-tauri/commands/windows/command.yaml
Normal file
|
|
@ -0,0 +1,124 @@
|
|||
list:
|
||||
- command:
|
||||
action: ahk
|
||||
exe_path: ahk/Roll up windows.exe
|
||||
exe_args:
|
||||
voice:
|
||||
sounds:
|
||||
- ok1
|
||||
- ok2
|
||||
- ok3
|
||||
phrases:
|
||||
- сверни все окна
|
||||
- сверни окна
|
||||
|
||||
- command:
|
||||
action: ahk
|
||||
exe_path: ahk/Empty trash.exe
|
||||
exe_args:
|
||||
voice:
|
||||
sounds:
|
||||
- ok1
|
||||
- ok2
|
||||
- ok3
|
||||
phrases:
|
||||
- очисти корзину
|
||||
- почисти корзину
|
||||
- очистка корзины
|
||||
|
||||
- command:
|
||||
action: ahk
|
||||
exe_path: ahk/Task manager open.exe
|
||||
exe_args:
|
||||
voice:
|
||||
sounds:
|
||||
- ok1
|
||||
- ok2
|
||||
- ok3
|
||||
phrases:
|
||||
- запусти диспетчер задач
|
||||
- открой диспетчер задач
|
||||
- диспетчер задач
|
||||
|
||||
- command:
|
||||
action: ahk
|
||||
exe_path: ahk/screenshot.exe
|
||||
exe_args:
|
||||
voice:
|
||||
sounds:
|
||||
- ok1
|
||||
- ok2
|
||||
- ok3
|
||||
phrases:
|
||||
- сделай скриншот
|
||||
- сделай снимок экрана
|
||||
- сними экран
|
||||
|
||||
- command:
|
||||
action: ahk
|
||||
exe_path: ahk/blocking.exe
|
||||
exe_args:
|
||||
voice:
|
||||
sounds:
|
||||
- ok1
|
||||
- ok2
|
||||
- ok3
|
||||
- ok4
|
||||
phrases:
|
||||
- заблокируй компьютер
|
||||
- заблокируй комп
|
||||
|
||||
- command:
|
||||
action: ahk
|
||||
exe_path: ahk/sleep.exe
|
||||
exe_args:
|
||||
voice:
|
||||
sounds:
|
||||
- ok1
|
||||
- ok2
|
||||
- ok3
|
||||
- ok4
|
||||
phrases:
|
||||
- спящий режим
|
||||
- ждущий режим
|
||||
- иди поспи
|
||||
|
||||
- command:
|
||||
action: ahk
|
||||
exe_path: ahk/clipboard.exe
|
||||
exe_args:
|
||||
voice:
|
||||
sounds:
|
||||
- ok1
|
||||
- ok2
|
||||
- ok3
|
||||
phrases:
|
||||
- открой буфер обмена
|
||||
- покажи буфер обмена
|
||||
- запусти буфер обмена
|
||||
- буфер обмена
|
||||
|
||||
- command:
|
||||
action: ahk
|
||||
exe_path: ahk/Set language.exe
|
||||
exe_args:
|
||||
voice:
|
||||
sounds:
|
||||
- ok1
|
||||
- ok2
|
||||
- ok3
|
||||
phrases:
|
||||
- смени раскладку
|
||||
- поменяй раскладку
|
||||
- смени язык
|
||||
- поменяй язык
|
||||
- переключи на русский
|
||||
- переключи на английский
|
||||
- смени раскладку на русскую
|
||||
- поменяй раскладку на русскую
|
||||
- поменяй раскладку на английскую
|
||||
- смени раскладку на английскую
|
||||
- смени язык на русский
|
||||
- поменяй язык на русский
|
||||
- смени язык на английский
|
||||
- поменяй язык на английский
|
||||
Loading…
Add table
Add a link
Reference in a new issue