[Q] Desktop shortcut to connect to a SPECIFIC wireless display


  1. Posts : 23
    Windows 10
       #1

    [Q] Desktop shortcut to connect to a SPECIFIC wireless display


    Hey guys! Windows 10 1909 here.

    Is there anything I can do to make a shortcut or a batch file that allows me to stream my Surface Go screen on my Samsung TV automatically without the need to click on the tv tab that opens on the right?

    I mean, I have already created a shortcut to this:

    %windir%\explorer.exe ms-settings-connectabledevices:devicediscovery

    I would like to know if I can add the part that lets the table connect straight to the TV without additional clicks.

    The best result would be just one click to use my tv as the ONLY external monitor to save some battery, since I would be controlling everything with the Surface keyboard.

    Thanks :)
      My Computer

  2. dalchina's Avatar
    Posts : 30,506
    Win 10 Pro (1903)
       #2

    Hi, you can write a small script with Autohotkey (free) that can do this for you. Well supported, documented.

    I did one recently for someone- it would look something like this (modify as appropriate):

    run, %windir%\explorer.exe ms-settings-connectabledevices:devicediscovery
    sleep, 1000
    send, {tab}
    send, {Enter}

    Put those lines in a text file, change the extension to .ahk and with Autohotkey installed, simply double click it.

    You can do this manually to check- use open the Action Centre dialogue, then use the tab and Enter keys to navigate.
    To create a shortcut, rt click the xxx.ahk file, click compile. The create a shortcut to the .exe you've created.
      My Computers


  3. Posts : 23
    Windows 10
    Thread Starter
       #3

    dalchina said:
    Hi, you can write a small script with Autohotkey (free) that can do this for you. Well supported, documented.

    I did one recently for someone- it would look something like this (modify as appropriate):

    run, %windir%\explorer.exe ms-settings-connectabledevices:devicediscovery
    sleep, 1000
    send, {tab}
    send, {Enter}

    Put those lines in a text file, change the extension to .ahk and with Autohotkey installed, simply double click it.

    You can do this manually to check- use open the Action Centre dialogue, then use the tab and Enter keys to navigate.
    To create a shortcut, rt click the xxx.ahk file, click compile. The create a shortcut to the .exe you've created.
    Thank you mate! :)

    In case there should be more than one TV available, the script would choose the first on the list. Am I right?
      My Computer

  4. dalchina's Avatar
    Posts : 30,506
    Win 10 Pro (1903)
       #4

    You're welcome- If these are listed in order, you can write two scripts, differing in the number of tabs sent - you could have a shortcut for each.
      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 13:50.
Find Us




Windows 10 Forums