First commit
This commit is contained in:
parent
8970b3cf90
commit
ce336f5969
30
bin/SARAH_Restart.vbs
Normal file
30
bin/SARAH_Restart.vbs
Normal file
@ -0,0 +1,30 @@
|
||||
'=====================================
|
||||
' RESTART (STOP THEN START) S.A.R.A.H.
|
||||
'=====================================
|
||||
Option explicit
|
||||
|
||||
Dim WshShell
|
||||
Dim sScriptPath, sRunSarah, sStopSarah
|
||||
Dim iReturnValue
|
||||
Dim Return
|
||||
|
||||
|
||||
iReturnValue = -1
|
||||
|
||||
sScriptPath = Replace(WScript.ScriptFullName, WScript.ScriptName, "")
|
||||
sRunSarah = "SARAH_Run.vbs"
|
||||
sStopSarah = "SARAH_Stop.vbs"
|
||||
|
||||
Set WshShell = WScript.CreateObject("WScript.Shell")
|
||||
|
||||
' Stop SARAH, and wait until the processes are finished
|
||||
Return = WshShell.Run(sScriptPath & sStopSarah, 1, true)
|
||||
|
||||
' Run SARAH
|
||||
Return = WshShell.Run(sScriptPath & sRunSarah, 1, False)
|
||||
|
||||
Set WshShell = nothing
|
||||
|
||||
|
||||
iReturnValue = 0
|
||||
WScript.Quit(iReturnValue)
|
3
bin/action_close_window.vbs
Normal file
3
bin/action_close_window.vbs
Normal file
@ -0,0 +1,3 @@
|
||||
set WshShell = WScript.CreateObject("WScript.Shell")
|
||||
WshShell.SendKeys "%{F4}"
|
||||
|
3
bin/action_desktop.vbs
Normal file
3
bin/action_desktop.vbs
Normal file
@ -0,0 +1,3 @@
|
||||
set WshShell = WScript.CreateObject("WScript.Shell")
|
||||
WshShell.SendKeys "^d"
|
||||
|
4
bin/action_droite.vbs
Normal file
4
bin/action_droite.vbs
Normal file
@ -0,0 +1,4 @@
|
||||
set WshShell = WScript.CreateObject("WScript.Shell")
|
||||
WshShell.SendKeys "{RIGHT}"
|
||||
|
||||
|
3
bin/action_enter.vbs
Normal file
3
bin/action_enter.vbs
Normal file
@ -0,0 +1,3 @@
|
||||
set WshShell = WScript.CreateObject("WScript.Shell")
|
||||
WshShell.SendKeys "{ENTER}"
|
||||
|
3
bin/action_f4.vbs
Normal file
3
bin/action_f4.vbs
Normal file
@ -0,0 +1,3 @@
|
||||
set WshShell = WScript.CreateObject("WScript.Shell")
|
||||
WshShell.SendKeys "^{f4}"
|
||||
|
3
bin/action_f5.vbs
Normal file
3
bin/action_f5.vbs
Normal file
@ -0,0 +1,3 @@
|
||||
set WshShell = WScript.CreateObject("WScript.Shell")
|
||||
WshShell.SendKeys "{f5}"
|
||||
|
4
bin/action_gauche.vbs
Normal file
4
bin/action_gauche.vbs
Normal file
@ -0,0 +1,4 @@
|
||||
set WshShell = WScript.CreateObject("WScript.Shell")
|
||||
WshShell.SendKeys "{LEFT}"
|
||||
|
||||
|
3
bin/action_minimize.vbs
Normal file
3
bin/action_minimize.vbs
Normal file
@ -0,0 +1,3 @@
|
||||
Set Shell = WScript.CreateObject("Shell.Application")
|
||||
Shell.MinimizeAll
|
||||
|
3
bin/action_next.vbs
Normal file
3
bin/action_next.vbs
Normal file
@ -0,0 +1,3 @@
|
||||
set WshShell = WScript.CreateObject("WScript.Shell")
|
||||
WshShell.SendKeys "%{RIGHT}"
|
||||
|
3
bin/action_precedent.vbs
Normal file
3
bin/action_precedent.vbs
Normal file
@ -0,0 +1,3 @@
|
||||
set WshShell = WScript.CreateObject("WScript.Shell")
|
||||
WshShell.SendKeys "%{LEFT}"
|
||||
|
3
bin/action_restore.vbs
Normal file
3
bin/action_restore.vbs
Normal file
@ -0,0 +1,3 @@
|
||||
Set Shell = WScript.CreateObject("Shell.Application")
|
||||
Shell.UndoMinimizeAll
|
||||
|
3
bin/action_save.vbs
Normal file
3
bin/action_save.vbs
Normal file
@ -0,0 +1,3 @@
|
||||
set WshShell = WScript.CreateObject("WScript.Shell")
|
||||
WshShell.SendKeys "^s"
|
||||
|
2
bin/action_tab.vbs
Normal file
2
bin/action_tab.vbs
Normal file
@ -0,0 +1,2 @@
|
||||
set WshShell = WScript.CreateObject("WScript.Shell")
|
||||
WshShell.SendKeys "%{TAB}"
|
1
bin/explorer.bat
Normal file
1
bin/explorer.bat
Normal file
@ -0,0 +1 @@
|
||||
cmd /c start explorer.exe
|
1
bin/explorer_disks.bat
Normal file
1
bin/explorer_disks.bat
Normal file
@ -0,0 +1 @@
|
||||
diskmgmt.msc
|
1
bin/explorer_dl.bat
Normal file
1
bin/explorer_dl.bat
Normal file
@ -0,0 +1 @@
|
||||
explorer "C:\Users\itrix\Downloads"
|
1
bin/explorer_documents.bat
Normal file
1
bin/explorer_documents.bat
Normal file
@ -0,0 +1 @@
|
||||
explorer "C:\Users\itrix\Documents"
|
1
bin/explorer_images.bat
Normal file
1
bin/explorer_images.bat
Normal file
@ -0,0 +1 @@
|
||||
explorer "C:\Users\itrix\Pictures"
|
1
bin/explorer_jarvis.bat
Normal file
1
bin/explorer_jarvis.bat
Normal file
@ -0,0 +1 @@
|
||||
explorer "J:\"
|
1
bin/explorer_plugins.bat
Normal file
1
bin/explorer_plugins.bat
Normal file
@ -0,0 +1 @@
|
||||
explorer "J:\plugins"
|
2
bin/pc_desktop_hide.bat
Normal file
2
bin/pc_desktop_hide.bat
Normal file
@ -0,0 +1,2 @@
|
||||
@echo off
|
||||
%CD%/plugins/jarvis/nircmd/nircmdc.exe win hide class progman
|
2
bin/pc_desktop_show.bat
Normal file
2
bin/pc_desktop_show.bat
Normal file
@ -0,0 +1,2 @@
|
||||
@echo off
|
||||
%CD%/plugins/jarvis/nircmd/nircmdc.exe win show class progman
|
3
bin/pc_mute.bat
Normal file
3
bin/pc_mute.bat
Normal file
@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
%CD%/plugins/jarvis/nircmd/nircmdc.exe mutesysvolume 1
|
||||
exit 0
|
1
bin/pc_restart.bat
Normal file
1
bin/pc_restart.bat
Normal file
@ -0,0 +1 @@
|
||||
start C:\"Windows\System32\shutdown.exe" -r -t 0
|
1
bin/pc_shutdown.bat
Normal file
1
bin/pc_shutdown.bat
Normal file
@ -0,0 +1 @@
|
||||
start C:\"Windows\System32\shutdown.exe" -s -t 0
|
3
bin/pc_unmute.bat
Normal file
3
bin/pc_unmute.bat
Normal file
@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
%CD%/plugins/jarvis/nircmd/nircmdc.exe mutesysvolume 0
|
||||
exit 0
|
3
bin/pc_veille.bat
Normal file
3
bin/pc_veille.bat
Normal file
@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
%CD%/plugins/jarvis/nircmd/nircmdc.exe standby
|
||||
exit 0
|
1
bin/program_close_discord.bat
Normal file
1
bin/program_close_discord.bat
Normal file
@ -0,0 +1 @@
|
||||
taskkill /f /im discord.exe
|
1
bin/program_close_firefox.bat
Normal file
1
bin/program_close_firefox.bat
Normal file
@ -0,0 +1 @@
|
||||
taskkill /f /im firefox.exe
|
1
bin/program_close_jarvis.bat
Normal file
1
bin/program_close_jarvis.bat
Normal file
@ -0,0 +1 @@
|
||||
taskkill /f /im Rainmeter.exe
|
1
bin/program_close_sublimetext.bat
Normal file
1
bin/program_close_sublimetext.bat
Normal file
@ -0,0 +1 @@
|
||||
taskkill /f /im sublime_text.exe
|
2
bin/program_run_discord.bat
Normal file
2
bin/program_run_discord.bat
Normal file
@ -0,0 +1,2 @@
|
||||
@echo off
|
||||
start %CD%/plugins/jarvis/url/Discord.lnk
|
1
bin/program_run_firefox.bat
Normal file
1
bin/program_run_firefox.bat
Normal file
@ -0,0 +1 @@
|
||||
start C:\"Program Files\Mozilla Firefox\firefox.exe"
|
2
bin/program_run_jarvis.bat
Normal file
2
bin/program_run_jarvis.bat
Normal file
@ -0,0 +1,2 @@
|
||||
start C:\"Program Files\Rainmeter\Rainmeter.exe"
|
||||
%CD%/plugins/jarvis/nircmd/nircmdc.exe sendkeypress rwin+d
|
1
bin/program_run_sublimetext.bat
Normal file
1
bin/program_run_sublimetext.bat
Normal file
@ -0,0 +1 @@
|
||||
start C:\"Program Files\Sublime Text 3\sublime_text.exe"
|
3
bin/system_dvd_off.bat
Normal file
3
bin/system_dvd_off.bat
Normal file
@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
%CD%/plugins/jarvis/nircmd/nircmdc.exe cdrom close e:
|
||||
exit 0
|
3
bin/system_dvd_on.bat
Normal file
3
bin/system_dvd_on.bat
Normal file
@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
%CD%/plugins/jarvis/nircmd/nircmdc.exe cdrom open e:
|
||||
exit 0
|
9
bin/system_quit_all.bat
Normal file
9
bin/system_quit_all.bat
Normal file
@ -0,0 +1,9 @@
|
||||
taskkill /f /im explorer.exe
|
||||
taskkill /f /im firefox.exe
|
||||
taskkill /f /im notepad.exe
|
||||
taskkill /f /im sublime_text.exe
|
||||
taskkill /f /im discord.exe
|
||||
|
||||
|
||||
start c:/Windows/explorer.exe
|
||||
taskkill /f /im cmd.exe
|
3
bin/system_screen_off.bat
Normal file
3
bin/system_screen_off.bat
Normal file
@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
%CD%/plugins/jarvis/nircmd/nircmdc.exe monitor async_off
|
||||
exit 0
|
2
bin/system_screen_on.vbs
Normal file
2
bin/system_screen_on.vbs
Normal file
@ -0,0 +1,2 @@
|
||||
set WshShell = WScript.CreateObject("WScript.Shell")
|
||||
WshShell.SendKeys "{ESC}"
|
2
bin/url_box.bat
Normal file
2
bin/url_box.bat
Normal file
@ -0,0 +1,2 @@
|
||||
@echo off
|
||||
start %CD%/plugins/jarvis/url/box.url
|
2
bin/url_facebook.bat
Normal file
2
bin/url_facebook.bat
Normal file
@ -0,0 +1,2 @@
|
||||
@echo off
|
||||
start %CD%/plugins/jarvis/url/facebook.url
|
2
bin/url_home.bat
Normal file
2
bin/url_home.bat
Normal file
@ -0,0 +1,2 @@
|
||||
@echo off
|
||||
start %CD%/plugins/jarvis/url/home.url
|
2
bin/url_store.bat
Normal file
2
bin/url_store.bat
Normal file
@ -0,0 +1,2 @@
|
||||
@echo off
|
||||
start %CD%/plugins/jarvis/url/store.url
|
2
bin/url_youtube.bat
Normal file
2
bin/url_youtube.bat
Normal file
@ -0,0 +1,2 @@
|
||||
@echo off
|
||||
start %CD%/plugins/jarvis/url/youtube.url
|
BIN
images/10981156_1536652686607345_4137601415673570201_n.jpg
Normal file
BIN
images/10981156_1536652686607345_4137601415673570201_n.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 76 KiB |
BIN
images/J.A.R.V.I.S..jpg
Normal file
BIN
images/J.A.R.V.I.S..jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 88 KiB |
BIN
images/Jarvis.jpg
Normal file
BIN
images/Jarvis.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 34 KiB |
BIN
images/jarvis.png
Normal file
BIN
images/jarvis.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 66 KiB |
607
jarvis.js
Normal file
607
jarvis.js
Normal file
@ -0,0 +1,607 @@
|
||||
exports.init = function(SARAH, SARAH2){
|
||||
console.log('Jarvis initialisation terminée.');
|
||||
}
|
||||
|
||||
exports.action = function(data, callback, config, SARAH) {
|
||||
|
||||
config = config.modules.jarvis;
|
||||
var exec = require('child_process').exec;
|
||||
|
||||
switch(data.val) {
|
||||
|
||||
//Tu es là ?
|
||||
case "la":
|
||||
var Txt = new Array;
|
||||
Txt[0] = "oui monsieur";
|
||||
Txt[1] = "oui monsieur, que puije pour vous";
|
||||
Txt[2] = "biensur";
|
||||
Txt[3] = "comme toujours";
|
||||
Txt[4] = "oui";
|
||||
Txt[4] = "Pour vous monsieur, toujours";
|
||||
break;
|
||||
|
||||
|
||||
|
||||
/*** - - - - - - - - - - - - - - DATE & HEURE - - - - - - - - - - - - - - ***/
|
||||
|
||||
//Donne l'heure
|
||||
case "time":
|
||||
var date = new Date();
|
||||
var Txt = new Array;
|
||||
var text = 'il est ' + date.getHours() + ' heure ';
|
||||
if (date.getMinutes() > 0){
|
||||
text += date.getMinutes();
|
||||
}
|
||||
text += ' [name]';
|
||||
|
||||
Txt[0] = text;
|
||||
break;
|
||||
|
||||
case "date":
|
||||
var Txt = new Array;
|
||||
var moment = require('moment');
|
||||
moment.lang('fr');
|
||||
var datedujour = moment().format("dddd, DD MMMM YYYY, HH [heure] mm");
|
||||
|
||||
Txt[0] = "Nous sommes le " + datedujour;
|
||||
Txt[1] = "La date du jour est le " + datedujour;
|
||||
Txt[2] = "Aujourd'hui nous sommes le " + datedujour;
|
||||
|
||||
break;
|
||||
|
||||
|
||||
|
||||
/*** - - - - - - - - - - - - - - AFFICHAGE ECRAN - - - - - - - - - - - - - - ***/
|
||||
|
||||
//Affiche son interface sur Rainmeter.
|
||||
case "program_run_jarvis":
|
||||
var process = '%CD%/plugins/jarvis/bin/program_run_jarvis.bat';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "je l'affiche";
|
||||
Txt[1] = "je lance mon interface";
|
||||
Txt[2] = "je m'en auccupe";
|
||||
Txt[3] = "tout de suite";
|
||||
break;
|
||||
|
||||
//Ferme son interface sur Rainmeter.
|
||||
case "program_close_jarvis":
|
||||
var process = '%CD%/plugins/jarvis/bin/program_close_jarvis.bat';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "c'est fait monsieur";
|
||||
Txt[1] = "je l'ai fermé";
|
||||
Txt[2] = "interface fermé";
|
||||
Txt[3] = "je l'ai masqué";
|
||||
Txt[4] = "je l'ai désactivé";
|
||||
break;
|
||||
|
||||
//Affiche le bureau
|
||||
case "action_minimize":
|
||||
process = '%CD%/plugins/jarvis/bin/action_minimize.vbs';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "vous etes sur le bureau";
|
||||
Txt[1] = "voici le bureau";
|
||||
Txt[2] = "affichage du bureau";
|
||||
Txt[3] = "vous voici sur le bureau monsieur"
|
||||
break;
|
||||
|
||||
//Restaure les fenêtres
|
||||
case "action_restore":
|
||||
process = '%CD%/plugins/jarvis/bin/action_restore.vbs';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "affichage des fenêtres";
|
||||
Txt[1] = "restoration des fenêtres";
|
||||
Txt[2] = "je remet les fenêtres";
|
||||
Txt[3] = "tout de suite";
|
||||
Txt[4] = "tout de suite monsieur";
|
||||
break;
|
||||
|
||||
//Exemple ouverture et fermeture d'un jeu.
|
||||
/*case "runminncraft":
|
||||
var process = '%CD%/plugins/jarvis/bin/runmincraft.bat';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "c'est fait monsieur creusé bien";
|
||||
Txt[1] = "bon jeux";
|
||||
Txt[2] = "amusez vous bien";
|
||||
Txt[3] = "c'est partis";
|
||||
break;
|
||||
|
||||
case "closeminncraft":
|
||||
var process = '%CD%/plugins/jarvis/bin/Closemincraft.bat';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "je ferm";
|
||||
Txt[1] = "je le ferm";
|
||||
Txt[2] = "c'est fermé";
|
||||
Txt[3] = "tout de suite";
|
||||
Txt[4] = "tout de suite monsieur";
|
||||
Txt[5] = "le jeux est fermé";
|
||||
Txt[5] = "finis de jouer monsieur";
|
||||
break;*/
|
||||
|
||||
|
||||
|
||||
/*** - - - - - - - - - - - - - - PAGE INTERNET - - - - - - - - - - - - - - ***/
|
||||
|
||||
//Rafraichissement de la page
|
||||
case "action_f5":
|
||||
process = '%CD%/plugins/jarvis/bin/action_f5.vbs';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "voilà";
|
||||
Txt[1] = "j'ai actualisé la page";
|
||||
Txt[2] = "c'est fait";
|
||||
Txt[3] = "voilà monsieur";
|
||||
Txt[4] = "tout de suite";
|
||||
Txt[5] = "tout de suite monsieur";
|
||||
break;
|
||||
|
||||
//Affiche la page web
|
||||
case "url_home":
|
||||
process = '%CD%/plugins/jarvis/bin/url_home.bat';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "voilà mon panneau de configuration";
|
||||
Txt[1] = "des réglages à faire, Monsieur ?";
|
||||
Txt[2] = "c'est fait";
|
||||
Txt[3] = "voilà le home";
|
||||
break;
|
||||
|
||||
//Affiche le store de S.A.R.A.H sur le panel admin.
|
||||
case "url_store":
|
||||
process = '%CD%/plugins/jarvis/bin/url_store.bat';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "tout de suite";
|
||||
Txt[1] = "j'ouvre la page";
|
||||
Txt[2] = "je vais recevoir un nouveau pluguine";
|
||||
Txt[3] = "je vous ouvre ça";
|
||||
Txt[4] = "voilà le store Monsieur";
|
||||
break;
|
||||
|
||||
//Affiche la page de la box internet (192.168.1.1)
|
||||
case "url_box":
|
||||
process = '%CD%/plugins/jarvis/bin/url_box.bat';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "tout de suite";
|
||||
Txt[1] = "j'ouvre la page";
|
||||
Txt[2] = "j'ouvre la box";
|
||||
Txt[3] = "je vous ouvre ça";
|
||||
Txt[4] = "voilà la page de votre box";
|
||||
Txt[5] = "page de configuration de la box";
|
||||
break;
|
||||
|
||||
//Ferme l'onglet
|
||||
case "action_f4":
|
||||
process = '%CD%/plugins/jarvis/bin/action_f4.vbs';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "voilà";
|
||||
Txt[1] = "onglet fermé";
|
||||
Txt[2] = "c'est fait";
|
||||
Txt[3] = "voilà monsieur";
|
||||
Txt[4] = "tout de suite";
|
||||
Txt[5] = "tout de suite monsieur";
|
||||
break;
|
||||
|
||||
//Ouvre la page facebook.com
|
||||
case "url_facebook":
|
||||
process = '%CD%/plugins/jarvis/bin/url_facebook.bat';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "voilà fessbouque";
|
||||
Txt[1] = "c'est fait";
|
||||
Txt[2] = "voilà monsieur";
|
||||
Txt[3] = "tout de suite";
|
||||
Txt[4] = "tout de suite monsieur";
|
||||
break;
|
||||
|
||||
//Ouvre la page youtube.com
|
||||
case "url_youtube":
|
||||
process = '%CD%/plugins/jarvis/bin/url_youtube.bat';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "voilà youtube";
|
||||
Txt[1] = "c'est fait";
|
||||
Txt[2] = "voilà monsieur";
|
||||
Txt[3] = "tout de suite";
|
||||
Txt[4] = "tout de suite monsieur";
|
||||
break;
|
||||
|
||||
|
||||
|
||||
/*** - - - - - - - - - - - - - - DOSSIERS & EXPLORATEUR - - - - - - - - - - - - - - ***/
|
||||
|
||||
//Ouvre le dossier des plugins
|
||||
case "explorer_plugins":
|
||||
var process = '%CD%/plugins/jarvis/bin/explorer_plugins.bat';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "j'ouvre le dossier";
|
||||
Txt[1] = "voici mes pluguine";
|
||||
Txt[2] = "tout de suite";
|
||||
break;
|
||||
|
||||
//Ouvre le dossier principal de Jarvis
|
||||
case "explorer_jarvis":
|
||||
var process = '%CD%/plugins/jarvis/bin/explorer_jarvis.bat';
|
||||
break;
|
||||
|
||||
//Affiche le dossier "Images"
|
||||
case "explorer_images":
|
||||
var process = '%CD%/plugins/jarvis/bin/explorer_images.bat';
|
||||
break;
|
||||
|
||||
//Affiche le dossier "Documents"
|
||||
case "explorer_documents":
|
||||
var process = '%CD%/plugins/jarvis/bin/explorer_documents.bat';
|
||||
break;
|
||||
|
||||
//Affiche le dossier "Téléchargements"
|
||||
case "explorer_dl":
|
||||
var process = '%CD%/plugins/jarvis/bin/explorer_dl.bat';
|
||||
break;
|
||||
|
||||
//Affiche les disques
|
||||
case "explorer_disks":
|
||||
var process = '%CD%/plugins/jarvis/bin/explorer_disks.bat';
|
||||
break;
|
||||
|
||||
|
||||
|
||||
/*** - - - - - - - - - - - - - - LANCEMENT & FERMETURE DE LOGICIELS - - - - - - - - - - - - - - ***/
|
||||
|
||||
//Lancement de firefox
|
||||
case "program_run_firefox":
|
||||
var process = '%CD%/plugins/jarvis/bin/program_run_firefox.bat';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "j'ouvre failleur fox";
|
||||
Txt[1] = "je lance failleur fox";
|
||||
Txt[2] = "bon surf monsieur";
|
||||
Txt[3] = "tout de suite";
|
||||
Txt[4] = "tout de suite";
|
||||
break;
|
||||
|
||||
//Fermeture de firefox
|
||||
case "program_close_firefox":
|
||||
var process = '%CD%/plugins/jarvis/bin/program_close_firefox.bat';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "c'est fait monsieur";
|
||||
Txt[1] = "je l'ai fermé";
|
||||
Txt[2] = "failleur fox fermé";
|
||||
break;
|
||||
|
||||
//Lancement de Sublime Text
|
||||
case "program_run_sublimetext":
|
||||
var process = '%CD%/plugins/jarvis/bin/program_run_sublimetext.bat';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "j'ouvre l'editeur";
|
||||
Txt[1] = "je lance notpade";
|
||||
Txt[2] = "tout de suite";
|
||||
break;
|
||||
|
||||
//Fermeture de Sublime Text
|
||||
case "program_close_sublimetext":
|
||||
var process = '%CD%/plugins/jarvis/bin/program_close_sublimetext.bat';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "éditeur fermé monsieur";
|
||||
Txt[1] = "je l'ai fermé";
|
||||
Txt[2] = "notpad fermé";
|
||||
break;
|
||||
|
||||
//Lancement de discord
|
||||
case "program_run_discord":
|
||||
var process = '%CD%/plugins/jarvis/bin/program_run_discord.bat';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "j'ouvre discorde";
|
||||
Txt[1] = "je lance discorde";
|
||||
Txt[2] = "tout de suite";
|
||||
Txt[3] = "tout de suite monsieur";
|
||||
break;
|
||||
|
||||
//Fermeture de discord
|
||||
case "program_close_discord":
|
||||
var process = '%CD%/plugins/jarvis/bin/program_close_discord.bat';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "discord fermé monsieur";
|
||||
Txt[1] = "je l'ai fermé";
|
||||
Txt[2] = "discord fermé";
|
||||
break;
|
||||
|
||||
|
||||
|
||||
/*** - - - - - - - - - - - - - - ACTIONS - - - - - - - - - - - - - - ***/
|
||||
|
||||
//Précédent
|
||||
case "action_precedent":
|
||||
process = '%CD%/plugins/jarvis/bin/action_precedent.vbs';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "retour en arrière";
|
||||
Txt[1] = "précédent";
|
||||
break;
|
||||
|
||||
//Suivant
|
||||
case "action_next":
|
||||
process = '%CD%/plugins/jarvis/bin/action_next.vbs';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "suivant";
|
||||
break;
|
||||
|
||||
//Entrer/Valider
|
||||
case "action_enter":
|
||||
process = '%CD%/plugins/jarvis/bin/action_enter.vbs';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "je valide";
|
||||
break;
|
||||
|
||||
//Sauvegarder (CTRL + S)
|
||||
case "action_save":
|
||||
process = '%CD%/plugins/jarvis/bin/action_save.vbs';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "c'est fait";
|
||||
Txt[1] = "je sauvegarde";
|
||||
Txt[2] = "sauvegarde éffectué";
|
||||
Txt[3] = "fichier sauvegardé";
|
||||
Txt[4] = "c'est fait monsieur";
|
||||
Txt[5] = "je sauvegarde monsieur";
|
||||
Txt[6] = "sauvegarde éffectué monsieur";
|
||||
Txt[7] = "fichier sauvegardé monsieur";
|
||||
break;
|
||||
|
||||
//Tabulation
|
||||
case "action_tab":
|
||||
process = '%CD%/plugins/jarvis/bin/action_tab.vbs';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "fenêtre suivante";
|
||||
Txt[1] = "changement de fenêtre";
|
||||
break;
|
||||
|
||||
//Fermer une fenêtre
|
||||
case "action_close_window":
|
||||
process = '%CD%/plugins/jarvis/bin/action_close_window.vbs';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "je ferme";
|
||||
Txt[1] = "fermeture de la fenêtre";
|
||||
Txt[2] = "fermeture de la page";
|
||||
Txt[3] = "c'est fermé";
|
||||
Txt[4] = "tout de suite";
|
||||
Txt[5] = "tout de suite monsieur";
|
||||
break;
|
||||
|
||||
//Ferme les principales fenêtres du système.
|
||||
case "system_quit_all":
|
||||
var process = '%CD%/plugins/jarvis/bin/system_quit_all.bat';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "tout est fermé";
|
||||
Txt[1] = "je m'en auccupe";
|
||||
Txt[2] = "tout de suite";
|
||||
Txt[3] = "c'est fait";
|
||||
break;
|
||||
|
||||
|
||||
|
||||
/*** - - - - - - - - - - - - - - GESTION DU PC - - - - - - - - - - - - - - ***/
|
||||
|
||||
//Éteindre le PC
|
||||
case "pc_shutdown":
|
||||
var Txt = new Array;
|
||||
Txt[0] = "je ferme la boutique";
|
||||
Txt[1] = "arret de l'ordinateur en cours";
|
||||
Txt[2] = "arret de l'ordinateur en cours Monsieur";
|
||||
Txt[3] = "arret en cours";
|
||||
Txt[4] = "j'éteint l'ordinateur";
|
||||
var process = '%CD%/plugins/jarvis/bin/pc_shutdown.bat';
|
||||
break;
|
||||
|
||||
//Redémarrer le PC
|
||||
case "pc_restart":
|
||||
var Txt = new Array;
|
||||
Txt[0] = "redémarrage de l'ordinateur en cours";
|
||||
Txt[1] = "redémarrage de l'ordinateur en cours Monsieur";
|
||||
Txt[2] = "redémarrage en cours";
|
||||
Txt[3] = "je redémarre l'ordinateur";
|
||||
var process = '%CD%/plugins/jarvis/bin/pc_restart.bat';
|
||||
break;
|
||||
|
||||
//Coupe le son
|
||||
case "pc_mute":
|
||||
var Txt = new Array;
|
||||
Txt[0] = "Système muet.";
|
||||
Txt[1] = "Je coupe le son";
|
||||
var process = '%CD%/plugins/jarvis/bin/pc_mute.bat';
|
||||
break;
|
||||
|
||||
//Remet le son
|
||||
case "pc_unmute":
|
||||
var process = '%CD%/plugins/jarvis/bin/pc_unmute.bat';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "J'active le son";
|
||||
Txt[1] = "Je remet le son";
|
||||
break;
|
||||
|
||||
//Désactive le bureau
|
||||
case "pc_desktop_hide":
|
||||
var Txt = new Array;
|
||||
var process = '%CD%/plugins/jarvis/bin/pc_desktop_hide.bat';
|
||||
Txt[0] = "Le bureau est désactivé monsieur";
|
||||
Txt[1] = "Je masque le bureau";
|
||||
break;
|
||||
|
||||
//Active le bureau
|
||||
case "pc_desktop_show":
|
||||
var Txt = new Array;
|
||||
var process = '%CD%/plugins/jarvis/bin/pc_desktop_show.bat';
|
||||
Txt[0] = "Le bureau est activé monsieur";
|
||||
Txt[1] = "J'affiche le bureau";
|
||||
break;
|
||||
|
||||
//Active le bureau
|
||||
case "pc_veille":
|
||||
var Txt = new Array;
|
||||
var process = '%CD%/plugins/jarvis/bin/pc_veille.bat';
|
||||
Txt[0] = "Je passe l'ordinateur en veille";
|
||||
Txt[1] = "Activation du mode veille";
|
||||
break;
|
||||
|
||||
|
||||
|
||||
/*** - - - - - - - - - - - - - - GESTION DE JARVIS - - - - - - - - - - - - - - ***/
|
||||
|
||||
//Redèmarrage de Jarvis (S.A.R.A.H)
|
||||
case "jarvis_reboot":
|
||||
var process = '%CD%/plugins/jarvis/bin/SARAH_Restart.vbs';
|
||||
break;
|
||||
|
||||
|
||||
|
||||
/*** - - - - - - - - - - - - - - GESTION DES PÉRIPHÉRIQUES - - - - - - - - - - - - - - ***/
|
||||
|
||||
//action_enter déjà défini (L. 303)
|
||||
|
||||
//Éteint l/les écran(s)
|
||||
case "system_screen_off":
|
||||
process = '%CD%/plugins/jarvis/bin/system_screen_off.bat';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "les écrans s'éteignent";
|
||||
Txt[1] = "voila, écrans éteint monsieur";
|
||||
Txt[2] = "tout de suite";
|
||||
Txt[3] = "tout de suite monsieur";
|
||||
break;
|
||||
|
||||
//Allume l/les écran(s)
|
||||
case "system_screen_on":
|
||||
process = '%CD%/plugins/jarvis/bin/system_screen_on.vbs';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "les écrans s'allument";
|
||||
Txt[1] = "voila, écrans allumés monsieur";
|
||||
Txt[2] = "tout de suite";
|
||||
Txt[3] = "tout de suite monsieur";
|
||||
break;
|
||||
|
||||
//Ouvre le lecteur DVD
|
||||
case "system_dvd_on":
|
||||
process = '%CD%/plugins/jarvis/bin/system_dvd_on.bat';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "lecteur ouvert";
|
||||
Txt[1] = "le lecteur est ouvert";
|
||||
Txt[2] = "c'est fait";
|
||||
Txt[3] = "c'est fait monsieur";
|
||||
Txt[4] = "tout de suite";
|
||||
Txt[5] = "tout de suite monsieur";
|
||||
break;
|
||||
|
||||
//Ferme le lecteur DVD
|
||||
case "system_dvd_off":
|
||||
process = '%CD%/plugins/jarvis/bin/system_dvd_off.bat';
|
||||
var Txt = new Array;
|
||||
Txt[0] = "je le ferm";
|
||||
Txt[1] = "fermeture du lecteur";
|
||||
Txt[2] = "lecteur fermé";
|
||||
Txt[3] = "c'est fermé";
|
||||
Txt[4] = "tout de suite";
|
||||
Txt[5] = "tout de suite monsieur";
|
||||
break;
|
||||
|
||||
|
||||
|
||||
/*** - - - - - - - - - - - - - - DISCUTIONS - - - - - - - - - - - - - - ***/
|
||||
|
||||
//Comment ça va ?
|
||||
case "humeur":
|
||||
var reponses = [
|
||||
"Ca va bien, Monsieur, et vous ?",
|
||||
"Comme d'habitude Monsieur, et vous ?",
|
||||
"Je me sens bien, merci. Et vous ?",
|
||||
"Je sens que mes circuit chauffe un peu, mais ça va. Et vous ?"
|
||||
];
|
||||
|
||||
var choix = Math.floor(Math.random() * reponses.length);
|
||||
var answer = reponses[choix];
|
||||
|
||||
SARAH.askme(answer, {
|
||||
"très bien": 'good', "très bien merci": 'good',
|
||||
"bien": 'good',
|
||||
"je vais bien": 'good',
|
||||
"comme d'habitude": 'good',
|
||||
"ça va": 'good',
|
||||
"sa va": 'good',
|
||||
"tranquille": 'good',
|
||||
"pas très bien": 'bad',
|
||||
"pas super": 'bad',
|
||||
"pas top": 'bad',
|
||||
"bof": 'bad',
|
||||
}, 10000, function(answer, end){ // the selected answer or false
|
||||
if(answer == 'bad') {
|
||||
var reponses4Bad = [
|
||||
"J'en suis navré Monsieur. Que puis-je faire pour vous remonter le moral",
|
||||
"Ah mince, que puis-je faire pour vous ",
|
||||
"Je suis désolé pour vous, que puis-je faire pour vous ?",
|
||||
"Ah mince, n'hésitez pas à soliciter mon aide",
|
||||
"ça change de d'habitude Monsieur, que puis-je faire pour vous remonter le moral ?"
|
||||
];
|
||||
|
||||
var choix = Math.floor(Math.random() * reponses4Bad.length);
|
||||
var answer4Bad = reponses4Bad[choix];
|
||||
|
||||
SARAH.speak(answer4Bad);
|
||||
} else {
|
||||
var reponses4Good = [
|
||||
"Super, que puis-je faire pour vous ?",
|
||||
"Génial, que puis-je faire pour vous ?",
|
||||
"Je suis content pour vous Monsieur",
|
||||
"Super, n'hésitez pas à soliciter mon aide",
|
||||
"Ah ! Je suis content pour vous Monsieur"
|
||||
];
|
||||
|
||||
var choix = Math.floor(Math.random() * reponses4Good.length);
|
||||
var answer4Good = reponses4Good[choix];
|
||||
|
||||
SARAH.speak(answer4Good);
|
||||
}
|
||||
end();
|
||||
});
|
||||
break;
|
||||
|
||||
//Réponds au merci
|
||||
case "merci":
|
||||
var Txt = new Array;
|
||||
Txt[0] = "Mais derien Monsieur";
|
||||
Txt[1] = "Derien";
|
||||
Txt[2] = "Sans moi vous seriez perdu Monsieur !";
|
||||
Txt[3] = "Pas de problème";
|
||||
Txt[4] = "Pas de soucis Monsieur";
|
||||
Txt[5] = "C'est un honneur.";
|
||||
Txt[6] = "Ah! J'ai failli attendre monsieur";
|
||||
break;
|
||||
|
||||
//Dis bonjour à Cynthia
|
||||
case "dis_bonjour_a_cynthia":
|
||||
var Txt = new Array;
|
||||
Txt[0] = "Bonjour cintia.";
|
||||
Txt[1] = "Bien le bonjour Madame";
|
||||
Txt[2] = "Bonjour Madame";
|
||||
Txt[3] = "Bonjour cintia, c'est un honneur";
|
||||
Txt[4] = "Bonjour Madame, c'est un honneur";
|
||||
break;
|
||||
|
||||
//Dis bonjour à Patrick
|
||||
case "dis_bonjour_a_patrick":
|
||||
var Txt = new Array;
|
||||
Txt[0] = "Bonjour Patrick.";
|
||||
Txt[1] = "Bien le bonjour Monsieur";
|
||||
Txt[2] = "Bonjour Monsieur";
|
||||
Txt[3] = "Bonjour Patrick, c'est un honneur";
|
||||
Txt[4] = "Bonjour Monsieur, c'est un honneur";
|
||||
break;
|
||||
|
||||
//Bonjour
|
||||
case "bonjour":
|
||||
var Txt = new Array;
|
||||
Txt[0] = "Bonjour Monsieur.";
|
||||
Txt[1] = "Bien le bonjour Monsieur";
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
|
||||
var child = exec(process,
|
||||
function(error, stdout, stderr) {
|
||||
console.log(process);
|
||||
});
|
||||
Choix = Math.floor(Math.random() * Txt.length);
|
||||
callback({
|
||||
'tts': Txt[Choix]
|
||||
});
|
||||
|
||||
}
|
9
jarvis.prop
Normal file
9
jarvis.prop
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"modules": {
|
||||
"jarvis": {
|
||||
"description": "Jarvis inspiré des films Iron Man.",
|
||||
"autheur": "Mathieu BROILLET",
|
||||
"version": "1.0"
|
||||
}
|
||||
}
|
||||
}
|
228
jarvis.xml
Normal file
228
jarvis.xml
Normal file
@ -0,0 +1,228 @@
|
||||
<grammar version="1.0" xml:lang="fr-FR" mode="voice" root="rulejarvis" xmlns="http://www.w3.org/2001/06/grammar" tag-format="semantics/1.0">
|
||||
<rule id="rulejarvis" scope="public">
|
||||
|
||||
<example>Jarvis tu es la?</example>
|
||||
<tag>out.action=new Object();</tag>
|
||||
|
||||
<item weight="2">Jarvis</item>
|
||||
<one-of>
|
||||
|
||||
<!-- ARE YOU HERE ? -->
|
||||
<item>tu es la<tag>out.action.val="la"</tag></item>
|
||||
|
||||
|
||||
|
||||
<!-- DATE & HEURE -->
|
||||
<item>il est quelle heure<tag>out.action.val="time"</tag></item>
|
||||
<item>c'est quel heure<tag>out.action.val="time"</tag></item>
|
||||
<item>quelle heure est il<tag>out.action.val="time"</tag></item>
|
||||
<item>peux tu me donner l'heure<tag>out.action.val="time"</tag></item>
|
||||
<item>tu peux me donner l'heure<tag>out.action.val="time"</tag></item>
|
||||
|
||||
<item>Quelle date sommes-nous<tag>out.action.val="date"</tag></item>
|
||||
<item>Quel jour sommes-nous<tag>out.action.val="date"</tag></item>
|
||||
<item>Quelle est la date<tag>out.action.val="date"</tag></item>
|
||||
<item>Quelle est la date d'aujourd'hui<tag>out.action.val="date"</tag></item>
|
||||
<item>Quelle date aujourd'hui<tag>out.action.val="date"</tag></item>
|
||||
<item>On est quand<tag>out.action.val="date"</tag></item>
|
||||
<item>On est quel jour<tag>out.action.val="date"</tag></item>
|
||||
<item>Donne moi la date<tag>out.action.val="date"</tag></item>
|
||||
<item>Donne moi la date d'aujourd'hui<tag>out.action.val="date"</tag></item>
|
||||
<item>Je ne sais plus quel jour on est<tag>out.action.val="date"</tag></item>
|
||||
<item>Je ne sais plus quelle date on est<tag>out.action.val="date"</tag></item>
|
||||
|
||||
|
||||
|
||||
<!-- AFFICHAGE ECRAN -->
|
||||
|
||||
<item>affiche ton interface<tag>out.action.val="program_run_jarvis"</tag></item>
|
||||
<item>active ton interface<tag>out.action.val="program_run_jarvis"</tag></item>
|
||||
<item>lance ton interface<tag>out.action.val="program_run_jarvis"</tag></item>
|
||||
<item>ouvre ton interface<tag>out.action.val="program_run_jarvis"</tag></item>
|
||||
<item>masque ton interface<tag>out.action.val="program_close_jarvis"</tag></item>
|
||||
<item>ferme ton interface<tag>out.action.val="program_close_jarvis"</tag></item>
|
||||
<item>désactive ton interface<tag>out.action.val="program_close_jarvis"</tag></item>
|
||||
|
||||
<item>affiche le bureau<tag>out.action.val="action_minimize"</tag></item>
|
||||
<item>va sur le bureau<tag>out.action.val="action_minimize"</tag></item>
|
||||
<item>restore<tag>out.action.val="action_restore"</tag></item>
|
||||
<item>réaffiche les fenêtres<tag>out.action.val="action_restore"</tag></item>
|
||||
<item>affiche les fenetres<tag>out.action.val="action_restore"</tag></item>
|
||||
<item>remet les fenetres<tag>out.action.val="action_restore"</tag></item>
|
||||
|
||||
|
||||
|
||||
<!-- PAGE INTERNET -->
|
||||
<item>actualise<tag>out.action.val="action_f5"</tag></item>
|
||||
<item>raffraichis<tag>out.action.val="action_f5"</tag></item>
|
||||
<item>met a jour<tag>out.action.val="action_f5"</tag></item>
|
||||
<item>relance<tag>out.action.val="action_f5"</tag></item>
|
||||
|
||||
<item>lance ta page de conf<tag>out.action.val="url_home"</tag></item>
|
||||
<item>affiche le panel<tag>out.action.val="url_home"</tag></item>
|
||||
<item>ouvre le panel<tag>out.action.val="url_home"</tag></item>
|
||||
<item>fait voir ton panel<tag>out.action.val="url_home"</tag></item>
|
||||
|
||||
<item>affiche le store<tag>out.action.val="url_store"</tag></item>
|
||||
<item>fait voir le store<tag>out.action.val="url_store"</tag></item>
|
||||
|
||||
<item>affiche la boxe<tag>out.action.val="url_box"</tag></item>
|
||||
<item>fait voir la boxe<tag>out.action.val="url_box"</tag></item>
|
||||
|
||||
<item>ferme l'onglet<tag>out.action.val="action_f4"</tag></item>
|
||||
|
||||
<item>va sur fèillsbouque<tag>out.action.val="url_facebook"</tag></item>
|
||||
<item>va sur youtube<tag>out.action.val="url_youtube"</tag></item>
|
||||
|
||||
|
||||
|
||||
<!-- DOSSIERS & EXPLORATEUR -->
|
||||
|
||||
<item>affiche les pluguine<tag>out.action.val="explorer_plugins"</tag></item>
|
||||
<item>fait voir les pluguine<tag>out.action.val="explorer_plugins"</tag></item>
|
||||
<item>affiche tes pluguine<tag>outaction.val="explorer_plugins"</tag></item>
|
||||
<item>fait voir tes pluguine<tag>out.action.val="explorer_plugins"</tag></item>
|
||||
|
||||
<item>fait voir ton dossier<tag>out.action.val="explorer_jarvis"</tag></item>
|
||||
<item>affiche ton dossier<tag>out.action.val="explorer_jarvis"</tag></item>
|
||||
|
||||
<item>affiche mes images<tag>out.action.val="explorer_images"</tag></item>
|
||||
<item>fait voir mes images<tag>out.action.val="explorer_images"</tag></item>
|
||||
<item>affiche les images<tag>out.action.val="explorer_images"</tag></item>
|
||||
<item>fait voir images<tag>out.action.val="explorer_images"</tag></item>
|
||||
<item>fais voir les images<tag>out.action.val="explorer_images"</tag></item>
|
||||
<item>fais voir mes images<tag>out.action.val="explorer_images"</tag></item>
|
||||
|
||||
<item>affiche mes documents<tag>out.action.val="explorer_documents"</tag></item>
|
||||
<item>affiche les documents<tag>out.action.val="explorer_documents"</tag></item>
|
||||
|
||||
<item>affiche les téléchargements<tag>out.action.val="explorer_dl"</tag></item>
|
||||
<item>affiche les torrent<tag>out.action.val="explorer_dl"</tag></item>
|
||||
<item>fais voir les torraint<tag>out.action.val="explorer_dl"</tag></item>
|
||||
|
||||
<item>affiche les disk<tag>out.action.val="explorer_disks"</tag></item>
|
||||
<item>fais voir les disk<tag>out.action.val="explorer_disks"</tag></item>
|
||||
|
||||
|
||||
<!-- LANCEMENT & FERMETURE DE LOGICIELS -->
|
||||
|
||||
<item>lance failleurfox<tag>out.action.val="program_run_firefox"</tag></item>
|
||||
<item>ouvre failleurfox<tag>out.action.val="program_run_firefox"</tag></item>
|
||||
<item>ferme failleurfox<tag>out.action.val="program_close_firefox"</tag></item>
|
||||
|
||||
<item>lance sublimetexte<tag>out.action.val="program_run_sublimetext"</tag></item>
|
||||
<item>lance sublime texte<tag>out.action.val="program_run_sublimetext"</tag></item>
|
||||
<item>lance sublimtext<tag>out.action.val="program_run_sublimetext"</tag></item>
|
||||
<item>lance l'editeur<tag>out.action.val="program_run_sublimetext"</tag></item>
|
||||
<item>ferme sublime text<tag>out.action.val="program_close_sublimetext"</tag></item>
|
||||
<item>ferme sublim text<tag>out.action.val="program_close_sublimetext"</tag></item>
|
||||
<item>ferme l'editeur<tag>out.action.val="program_close_sublimetext"</tag></item>
|
||||
|
||||
|
||||
<item>lance discorde<tag>out.action.val="program_run_discord"</tag></item>
|
||||
<item>ouvre discorde<tag>out.action.val="program_run_discord"</tag></item>
|
||||
<item>ouvre discorde<tag>out.action.val="program_run_discord"</tag></item>
|
||||
<item>ferme discorde<tag>out.action.val="program_close_discord"</tag></item>
|
||||
<item>ferme discord<tag>out.action.val="program_close_discord"</tag></item>
|
||||
|
||||
|
||||
|
||||
<!-- ACTIONS -->
|
||||
|
||||
<item>précédent<tag>out.action.val="action_precedent"</tag></item>
|
||||
<item>suivant<tag>out.action.val="action_next"</tag></item>
|
||||
<item>valider<tag>out.action.val="action_enter"</tag></item>
|
||||
<item>entrer<tag>out.action.val="action_enter"</tag></item>
|
||||
<item>sauvegarde<tag>out.action.val="action_save"</tag></item>
|
||||
<item>fenêtre suivante<tag>out.action.val="action_tab"</tag></item>
|
||||
<item>ferme la fenêtre<tag>out.action.val="action_close_window"</tag></item>
|
||||
|
||||
<item>ferme tout<tag>out.action.val="system_quit_all"</tag></item>
|
||||
|
||||
|
||||
<item>1 plus 1<tag>out.action.val="action_enter"</tag></item>
|
||||
|
||||
|
||||
<!-- GESTION DU PC -->
|
||||
|
||||
<item>éteind le PC<tag>out.action.val="pc_shutdown"</tag></item>
|
||||
<item>éteind l'PC<tag>out.action.val="pc_shutdown"</tag></item>
|
||||
<item>éteind l'ordinateur<tag>out.action.val="pc_shutdown"</tag></item>
|
||||
<item>arrête le PC<tag>out.action.val="pc_shutdown"</tag></item>
|
||||
<item>arrête l'ordinateur<tag>out.action.val="pc_shutdown"</tag></item>
|
||||
|
||||
<item>redémarre le PC<tag>out.action.val="pc_restart"</tag></item>
|
||||
<item>redémarre l'ordinateur<tag>out.action.val="pc_restart"</tag></item>
|
||||
|
||||
<item>coupe le son<tag>out.action.val="pc_mute"</tag></item>
|
||||
<item>silence radio<tag>out.action.val="pc_mute"</tag></item>
|
||||
<item>désactive le son<tag>out.action.val="pc_mute"</tag></item>
|
||||
<item>muet<tag>out.action.val="pc_mute"</tag></item>
|
||||
<item>tais toi<tag>out.action.val="pc_mute"</tag></item>
|
||||
|
||||
<item>remet le son<tag>out.action.val="pc_unmute"</tag></item>
|
||||
<item>ré-active le son<tag>out.action.val="pc_unmute"</tag></item>
|
||||
|
||||
<item>cache le bureau<tag>out.action.val="pc_desktop_hide"</tag></item>
|
||||
<item>masque le bureau<tag>out.action.val="pc_desktop_hide"</tag></item>
|
||||
<item>désactive le bureau<tag>out.action.val="pc_desktop_hide"</tag></item>
|
||||
|
||||
<item>remet le bureau<tag>out.action.val="pc_desktop_show"</tag></item>
|
||||
<item>ré-active le bureau<tag>out.action.val="pc_desktop_show"</tag></item>
|
||||
<item>active le bureau<tag>out.action.val="pc_desktop_show"</tag></item>
|
||||
|
||||
<item>mets le pc en veille<tag>out.action.val="pc_veille"</tag></item>
|
||||
<item>mets l'ordinateur en veille<tag>out.action.val="pc_veille"</tag></item>
|
||||
<item>active le mode veille<tag>out.action.val="pc_veille"</tag></item>
|
||||
|
||||
|
||||
|
||||
<!-- GESTION DE JARVIS-->
|
||||
|
||||
<item>relance le systaime<tag>out.action.val="jarvis_reboot"</tag><tag>out.action._attributes.tts = "je relance mon système"</tag></item>
|
||||
<item>relance ton systaime<tag>out.action.val="jarvis_reboot"</tag><tag>out.action._attributes.tts = "je relance mon système"</tag></item>
|
||||
<item>redémar le systaime<tag>out.action.val="jarvis_reboot"</tag><tag>out.action._attributes.tts = "je relance mon système"</tag></item>
|
||||
<item>redémar ton systaime<tag>out.action.val="jarvis_reboot"</tag><tag>out.action._attributes.tts = "je relance mon système"</tag></item>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- GESTION DES PÉRIPHÉRIQUES -->
|
||||
|
||||
<item>réveilles toi<tag>out.action.val="action_enter"</tag></item>
|
||||
<item>reviens<tag>out.action.val="action_enter"</tag></item>
|
||||
<item>éteinds l'écran<tag>out.action.val="system_screen_off"</tag></item>
|
||||
<item>allume l'écran<tag>out.action.val="system_screen_on"</tag></item>
|
||||
<item>ouvre le Dévédé<tag>out.action.val="system_dvd_on"</tag></item>
|
||||
<item>ferme le Dévédé<tag>out.action.val="system_dvd_off"</tag></item>
|
||||
<item>ouvre le lecteur<tag>out.action.val="system_dvd_on"</tag></item>
|
||||
<item>ferme le lecteur<tag>out.action.val="system_dvd_off"</tag></item>
|
||||
|
||||
|
||||
|
||||
<!-- DISCUTIONS -->
|
||||
|
||||
<item>ça va<tag>out.action.val="humeur"</tag></item>
|
||||
<item>comment tu vas<tag>out.action.val="humeur"</tag></item>
|
||||
<item>comment vas tu<tag>out.action.val="humeur"</tag></item>
|
||||
<item>tu va bien<tag>out.action.val="humeur"</tag></item>
|
||||
<item>comment ça va<tag>out.action.val="humeur"</tag></item>
|
||||
<item>la forme<tag>out.action.val="humeur"</tag></item>
|
||||
|
||||
|
||||
<item>dis bonjour a cynthia<tag>out.action.val="dis_bonjour_a_cynthia"</tag></item>
|
||||
<item>dis bonjour a patrick<tag>out.action.val="dis_bonjour_a_patrick"</tag></item>
|
||||
|
||||
|
||||
<!-- MICRO & CO
|
||||
|
||||
<item>passe sur le casque<tag>out.action.val="switch"</tag></item>
|
||||
<item>passe sur le casque<tag>out.action.val="switch"</tag></item>
|
||||
<item>change la sortie audio<tag>out.action.val="switch"</tag></item>
|
||||
<item>ajuste le micro<tag>out.action.val="microadjust"</tag></item>-->
|
||||
|
||||
</one-of>
|
||||
|
||||
<tag>out.action._attributes.uri="http://127.0.0.1:8080/sarah/jarvis";</tag>
|
||||
</rule>
|
||||
</grammar>
|
BIN
nircmd/nircmd.exe
Normal file
BIN
nircmd/nircmd.exe
Normal file
Binary file not shown.
BIN
nircmd/nircmdc.exe
Normal file
BIN
nircmd/nircmdc.exe
Normal file
Binary file not shown.
BIN
url/Discord.lnk
Normal file
BIN
url/Discord.lnk
Normal file
Binary file not shown.
6
url/box.url
Normal file
6
url/box.url
Normal file
@ -0,0 +1,6 @@
|
||||
[InternetShortcut]
|
||||
URL=http://192.168.1.1/
|
||||
IDList=
|
||||
HotKey=0
|
||||
[{000214A0-0000-0000-C000-000000000046}]
|
||||
Prop3=19,2
|
6
url/facebook.url
Normal file
6
url/facebook.url
Normal file
@ -0,0 +1,6 @@
|
||||
[InternetShortcut]
|
||||
URL=https://www.facebook.com/
|
||||
IDList=
|
||||
HotKey=0
|
||||
[{000214A0-0000-0000-C000-000000000046}]
|
||||
Prop3=19,11
|
6
url/home.url
Normal file
6
url/home.url
Normal file
@ -0,0 +1,6 @@
|
||||
[InternetShortcut]
|
||||
URL=http://127.0.0.1:8080/
|
||||
IDList=
|
||||
HotKey=0
|
||||
[{000214A0-0000-0000-C000-000000000046}]
|
||||
Prop3=19,2
|
6
url/store.url
Normal file
6
url/store.url
Normal file
@ -0,0 +1,6 @@
|
||||
[InternetShortcut]
|
||||
URL=http://127.0.0.1:8080/portal/store
|
||||
IDList=
|
||||
HotKey=0
|
||||
[{000214A0-0000-0000-C000-000000000046}]
|
||||
Prop3=19,2
|
6
url/youtube.url
Normal file
6
url/youtube.url
Normal file
@ -0,0 +1,6 @@
|
||||
[InternetShortcut]
|
||||
URL=https://www.youtube.com/
|
||||
IDList=
|
||||
HotKey=0
|
||||
[{000214A0-0000-0000-C000-000000000046}]
|
||||
Prop3=19,11
|
Loading…
Reference in New Issue
Block a user