Can a universal app be started via keyboard shortcut or command line


  1. Posts : 36
    Windows 10
       #1

    Can a universal app be started via keyboard shortcut or command line


    The thread title pretty much says it all. Can a universal app (currently interested in Weather) be started via keyboard shortcut or command line command?
      My Computer


  2. Posts : 42,988
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    You could do this:
    Can a universal app be started via keyboard shortcut or command line-snap-2017-02-09-20.58.22.jpg
    - drag a shortcut off the start menu and assign a keyboard shortcut.

    Command line: see
    How to start Microsoft Photos from command line?
    for an example

    Go here in file explorer
    %appdata%\..\local\Packages
    and you will see a list of others, including Weather
    Last edited by dalchina; 09 Feb 2017 at 16:45.
      My Computers


  3. Posts : 36
    Windows 10
    Thread Starter
       #3

    Very useful information. Thank you very much.
      My Computer


  4. Posts : 36
    Windows 10
    Thread Starter
       #4

    Bob Coleman said:
    Very useful information. Thank you very much.
    I note though that the dragged shortcut seems to work only if on the desktop.
      My Computer


  5. Posts : 42,988
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #5

    Given you know the command, you should be able to put that in a script and use Autohotkey to assign a shortcut, for example..
    There's probably a simpler way...
      My Computers


  6. Posts : 36
    Windows 10
    Thread Starter
       #6

    dalchina said:
    Given you know the command, you should be able to put that in a script and use Autohotkey to assign a shortcut, for example..
    There's probably a simpler way...
    Yes, thanks again. I'm using AutoIt rather than Autohotkey, but somewhat the same idea.
      My Computer


  7. Posts : 36
    Windows 10
    Thread Starter
       #7

    dalchina said:
    You could do this:
    Can a universal app be started via keyboard shortcut or command line-snap-2017-02-09-20.58.22.jpg
    - drag a shortcut off the start menu and assign a keyboard shortcut.

    Command line: see
    How to start Microsoft Photos from command line?
    for an example

    Go here in file explorer
    %appdata%\..\local\Packages
    and you will see a list of others, including Weather
    For whatever value it might possibly be to anybody in the future, the above relative to command line boils down to create a command such as

    explorer.exe shell:appsFolder\Microsoft.Windows.Photos_8wekyb3d8bbwe!App


    for Photos or

    explorer.exe shell:appsFolder\Microsoft.BingWeather_8wekyb3d8bbwe!App

    for Weather where the green part is obtained from

    %appdata%\..\local\Packages

    The new information here is that for Microsoft Edge, the part after the exclamation point has to be MicrosoftEdge rather than App.

    I eventually figured this out by examining the dragged shortcuts.
      My Computer


  8. Posts : 42,988
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #8

    Great-that's a useful understanding. Note there are no parameters for these, of course.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:47.
Find Us




Windows 10 Forums