Demo for creating custom Cortana commands.
OVERVIEW:
Revielle is a Windows 10 Univeral App which demonstrates MVVM and Cortana Integration.
In-progress, the VoiceCommandService will allow the app to function even when it's not in the foreground.
USE:
-
Execute a custom autohotkey script with your voice!
----- a) Place your autohotkey script(s) in the app's ResourceFiles directory (under Model).
----- b) Rename the scripts so each word is capitalized, and separated by _ (ex "My_Custom_Script.ahk").
----- c) Open Revielle in Visual Studio.
----- d) In the project explorer, right-click the ResourcesFiles folder and Add->Existing Item your script.
----- e) Right-click your script from the project explorer and select properties.
----- f) Set 1) Build Action to "Content" and 2) Copy to Output Direcotry to "Copy if Newer".
----- g) Run Reveille; make sure it's in the foreground.
----- h) Activate Cortana by clicking the mic icon on the taskbar, or pressing WIN+C.
----- i) Say "Cortana, execute [filename]"
----- j) Cortana will launch your script; diagnostics will be displayed by the app. -
Create an entirely custom command.
----- a) Modify the vcd file (https://msdn.microsoft.com/en-us/library/windows/apps/mt185609.aspx)
----- b) Modify the ProcessCommand method in the Cortana class.
----- b-2) Create the appropriate subclass of CortanaCommand. You'll need to instantiate it in the step above. -
What on Earth does "unseal the hushed casket" do?
----- Ignore that if it bothers you. Eventually, that may turn into an interactive tutorial. For now it's an easter egg.
FINAL COMMENTS:
Cortana is an extremely cool feature of Windows 10. Hopefully, you'll be able to leverage this simple application to better exploit it.