Windows 10: Extending the Functions of Windows 10’s Cortana

Discus and support Extending the Functions of Windows 10’s Cortana in Windows 10 Software and Apps to solve the problem; Cortana is quite capable, but there are times when I wish it has more features. For example, I really wanted to be able to lock my computer with a... Discussion in 'Windows 10 Software and Apps' started by ticoneva, Aug 12, 2015.

  1. ticoneva Win User

    Extending the Functions of Windows 10’s Cortana


    Cortana is quite capable, but there are times when I wish it has more features. For example, I really wanted to be able to lock my computer with a single voice command, but Cortana does not have this function built in. Fortunately, it is possible to extend Cortana's function. To do so, we make use of the fact that Cortana searches through the start menu shortcuts when you say the keyword "open" or "launch".

    Here are the steps to create a command to lock your computer:

    • Create a shortcut in an accessible location such as the desktop. This can be achieved by pressing the right mouse button and select [New]->[Shortcut].
    • For the location of the item, enter: %SystemRoot%\System32\rundll32.exe user32.dll,LockWorkStation
    • Give the shortcut a natural name, which is what Cortana will look for when you speak to her. Since Cortana utilitizes natural language processing, it is much better at recognizing phrases that actually make sense.
    • Copy the newly created shortcut to: %SystemDrive%\ProgramData\Microsoft\Windows\Start Menu\Programs. You will need administrative privileges to complete this step.
    If all goes well, you should be able to lock your computer by saying "hey Cortana, open lock computer".

    You can create similar commands to hibernate or sleep your computer. Just change the location of the item accordingly:

    • Hibernate: %SystemRoot%\System32\rundll32.exe Powrprof.dll,SetSuspendState Sleep
    • Sleep: You need PSTools from Microsoft. Set item location as: [Location of PSTools]\psshutdown.exe -d -t 0

    Another thing you can do is to create a command to open a website. You might think that this would be as simple as adding an internet shortcut to the start menu, but turns out it is more complicated than that: while Cortana keeps a record of internet shortcuts created through installation of programs, she does not do so with ones that are added manually. Furthermore, she does not index shortcuts that have non-executable extensions, meaning that you cannot use "chrome.exe gmail.com", because this would be recognized as having a ".com" extension.

    Here is how to get around this issue:

    • Create a text file and type in it "start " followed by the URL you want to open.
    • Change the extension of the text file to ".bat"
    • Create a shortcut that points to the file you just created and follow the aforementioned steps.
    For example, I have created a shortcut called "Gmail" that points to a "Gmail.bat" that executes "start Gmail". With this, Cortana would open Gmail with my computer's default browser when I say "Hey Cortana, open Gmail".

    Upon creating the shortcuts, you might notice that the default icon is quite uninformative. You can pick a better one after you created the shortcut by right-clicking on the icon, click [Properties], followed by clicking [Change Icon...]. Enter one of the following in "Look for icons in this file" textbox, where you should find a lot of icons to choose from:
    %SystemRoot%\System32\shell32.dll
    %SystemRoot%\System32\imageres.dll

    So here you go, try it out!

    Extending the Functions of Windows 10’s Cortana [​IMG]


    Extending the Functions of Windows 10’s Cortana [​IMG]


    :)
     
    ticoneva, Aug 12, 2015
    #1
  2. BulldogXX Win User
    BulldogXX, Aug 12, 2015
    #2
  3. BulldogXX Win User
    male voice in Cortana in Lumia 535

    Cortana is an actual character from the game Halo. The character has a female voice.

    If Microsoft decides to offer different voices for Windows 10's search function in the future, they may decide to add a male character.
     
    BulldogXX, Aug 12, 2015
    #3
  4. code4food Win User

    Extending the Functions of Windows 10’s Cortana

    Thank you for the post. I have added gmail and facebook to the commands that Cortana can understand. I was looking for ways to programatically extend Cortana when I saw your post come up in the search results. This is by far the easiest way to add simple commands to open foreground applications. Thanks again!
     
    code4food, Aug 20, 2015
    #4
Thema:

Extending the Functions of Windows 10’s Cortana

Loading...
  1. Extending the Functions of Windows 10’s Cortana - Similar Threads - Extending Functions 10’s

  2. CORTANA' S FUNCTIONS MISSING!!

    in Cortana
    CORTANA' S FUNCTIONS MISSING!!: [ATTACH] THIS IS VISIBLE TO ME [ATTACH] AND IN THE MENU BAR ONLY THIS IS VISIBLE. WHERE IS MY LEFT PANEL?? https://answers.microsoft.com/en-us/windows/forum/all/cortana-s-functions-missing/099de354-164c-4fa9-8376-edafc27c12d1
  3. Cortana's improper functionality

    in Cortana
    Cortana's improper functionality: Week ago I purchase a Headphone for better experience of windows features. In starting, it works fine and when I call her, she just do few of task and say "Sorry, I can't help with that." I'm fine with that but now today i call her she didn't respond and even can't search on...
  4. Windows 10, Win + Shift + S not functioning properly

    in Windows 10 Customization
    Windows 10, Win + Shift + S not functioning properly: I recently upgraded my PC to Windows 10 and on every Win 10 PC I've encountered Win + Shift + S opens Snip and Sketch, however on my computer it opens the Snipping tool, and a strange twist to this is both Windows + Shift + S will open this, AND Left Shift + S. So I'll be...
  5. Windows 10’s next update will make Cortana movable

    in Windows 10 News
    Windows 10’s next update will make Cortana movable: Windows 10 20H1 update will turn Cortana into a separate app within the operating system. In Windows 10 20H1 preview builds, Cortana is a standalone and independent app. That means you will be able to update Cortana as any other app from the Microsoft Store. Windows 10 20H1...
  6. Extend display function doesn’t work

    in Windows 10 Drivers and Hardware
    Extend display function doesn’t work: I used to extend my Surface Pro 10 screen to the HP monitor. Since last week I have faced an issue with this extension feature. I tried to adjust the settings and went to the display setup but the monitor isn’t shown there. I did everything that I could but no avail....
  7. Extended Cortana Menu

    in Windows 10 Support
    Extended Cortana Menu: I use a Microsoft Account to sign into at least 3 home PC's using the latest normal build of Window 10. On only 1 PC/Laptop ... i have somehow managed to make the Cortana Menu (Windows Key + Q), extended ... so that it offers additional options for anything including APPs...
  8. Microsoft announces new features for Windows 10’s Cortana

    in Windows 10 News
    Microsoft announces new features for Windows 10’s Cortana: Microsoft at Build 2018 announced a lot of tools to synchronize all your work between devices so that you can start from one device and resume from another. Windows Timeline is the best example to this. With Timeline, the user will be able to see all the tasks which he has...
  9. Cortana email function

    in Browsers and Email
    Cortana email function: Have set up Cortana in windows 10. Works OK. I ask to send email and it asks for contact name. No contact is listed in drop box list. Cannot send mail. I have functioning Comcast, Outlook and Gmail accounts. How do I establish contacts in Cortana. 19140
  10. Windows 10 Deployment: Broken Cortana and Search functions

    in Windows 10 Installation and Upgrade
    Windows 10 Deployment: Broken Cortana and Search functions: Hi All, Been pulling my hair out for months working with this OS and MDT. I'm creating a master image (Golden) on a virtual machine and when the software for our organization is installed, and a test user logs into the Virtual machine for the first time, Cortana and search...