Commands customisation - CSharpTeoMan911/Eva GitHub Wiki

API Classification

The customisable commands are classified into 3 categories: Commands that open applications, commands that close applications, and commands that search content on web applications.

Command categories

Commands that open applications

The commands that open applications are further sub-divided into 3 categories, and these are:

  • PRC is the processes category which contains commands that are executing processes directly, without using intermediaries. For example if you type into Command Prompt www.google.com, Command Prompt will open this website using your default web browser. Another example is if you type the path to an executable in command prompt, Command Prompt will open the application at the specified path directly.

  • CMD is the processes category which contains commands that are literal command prompt commands. For example, the command start "" chrome will start the Chrome browser.

  • URI is the processes category which contains commands that are calling specific functions of the Windows 10/11 API. For example the ms-settings:privacy-feedback URI will open the settings menu at the Diagnostic and Feedback page using the Windows 10/11 API URI Schema. For more details the Windows 10/11 API URI Schema visit https://learn.microsoft.com/en-us/windows/uwp/app-resources/uri-schemes and https://learn.microsoft.com/en-us/windows/uwp/launch-resume/launch-settings-app.

Adding commands that open applications

Command add


To add a command select the Set commands option from the settings menu and then, select the Add command option from the command management menu.


Open apps


Then in the command addition sub-menu add the command, the content to be executed, and select the command type. The command is the command that you give to Eva, for example, open chrome where chrome = [ COMMAND ]. The content of the command is either the path to the executable, or the website, or any process to be started associated with the command, for example if the command is google and the content is www.google.com, when the command open google is given, the process associated with the command which in this case is www.google.com will be started. To test the command, simply say 'Listen' followed by the chosen command then look up the result in the textbox next to 'Test the command' label, to see if the set command is recognised. Depending on the pronunciation and accent, the recogniser may recognise 'star coder' as 'start coder', so with this feature you can tweak your commands to suit your accent and pronunciation.

Commands that close applications

The commands that close applications are using the process name of an executable to locate and terminate all processes that have that process name. The process name of any app can be found by either searching in Task Manager the process and right click to open the proprieties menu or either by right clicking to open the proprieties menu of a process within the task bar.

Eva_Capture1828982043

Eva_Capture1800014314

Eva_Capture34658396

Eva_Capture1532099784

Eva_Capture1435233563

Adding commands that close applications

Close apps


To add a command select the Set commands option from the settings menu and then, select the Add command option from the command management menu.


Close apps


Then in the command addition sub-menu add the command and the content to be executed. The command is the command that you give to Eva, for example, close chrome where chrome = [ COMMAND ]. The content of the command is the process name, for example if the command is chrome and the content is the process name chrome, when the command close chrome is given, the process associated with the command will be terminated. To test the command, simply say 'Listen' followed by the chosen command then look up the result in the textbox next to 'Test the command' label, to see if the set command is recognised. Depending on the pronunciation and accent, the recogniser may recognise 'star coder' as 'start coder', so with this feature you can tweak your commands to suit your accent and pronunciation.

Commands that search content on web applications

The commands that search content on web applications are using the URL query format to search the desired content. To get the query necessary to search content on web applications, you need to go to the page where the content is searched, searched the desired content, analyse the URL, and extract only the necessary portion of the query related by using logic and reasoning trough testing. For example, if you search Ebay on google, the resulting URL will be https://www.google.com/search?q=ebay&sca_esv=b3f599f2fec3adbb&sca_upv=1&sxsrf=ADLYWILGqc77ubvrpLxRSsJ . . .

To extract the portion of the URL necessary for web search we must look for the keyword ebay, which can be found in this portion of the URL https://www.google.com/search?q=ebay, resulting in the fact that to search content on Google, the necessary URL query is https://www.google.com/search?q=, because https://www.google.com/search?q=[CONTENT] will search the specified [CONTENT] on Google.

Adding commands that search content on web applications

Search on Web Apps


To add a command select the Set commands option from the settings menu and then, select the Add command option from the command management menu.


Web app


Then in the command addition sub-menu add the command and the content to be executed. The command is the command that you give to Eva, for example, search robots on google where google = [ COMMAND ], and robots = [CONTENT]. The content of the command is the web app query, for example if the command is google and the content is the web app query https://www.google.com/search?q=, when the command search robots on google is given, the content that is robots will be searched by appending the content to the search query and navigating to the resulting URL, resulting in the format https://www.google.com/search?q=[CONTENT], which in this case will result in the final URL https://www.google.com/search?q=robots. To test the command, simply say 'Listen' followed by the chosen command then look up the result in the textbox next to 'Test the command' label, to see if the set command is recognised. Depending on the pronunciation and accent, the recogniser may recognise 'star coder' as 'start coder', so with this feature you can tweak your commands to suit your accent and pronunciation.

⚠️ **GitHub.com Fallback** ⚠️