Skip to main content
replaced http://superuser.com/ with https://superuser.com/
Source Link

You can bind Win-B to tether Bluetooth.

  1. As suggested by Techie007Techie007 you can create a shortcut by going to "Devices and Printers" right-clicking the phone and selecting "Create shortcut".

  2. Put the shortcut in a directory like "C:\Windows\BluetoothLink" by itself

  3. Install Autohotkey

  4. Right click on the Desktop, and choose "New" -> "AutohotkeyScript"

  5. Enter the following:

    #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
    SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
    
    #B::
        SetKeyDelay, 200
        Run, C:\Windows\BluetoothLink
        Sleep, 300
        Send, {Down}
        Sleep, 200
        Send, {AppsKey}
        Sleep, 550
        Send, {Down}
        Send, {Down}
        Send, {Right}
        Send, {Enter}
    
  6. Save the Autohotkey script (e.g. Ctrl-S)

  7. Double click the Autohotkey script to run it

  8. Press Win-B, test that it works

  9. Open your startup directory (e.g. press Win-R and type "shell:startup")

  10. Make a shortcut to the Autohotkey script (so that it works even after reboot).

One could perhaps make this fully automatic by scheduling a task on resume but I am not sure I would recommend fully automatic Autohotkey scripts stealing control of your keyboard from you. They tend to be a bit fiddly even when run manually.

You can bind Win-B to tether Bluetooth.

  1. As suggested by Techie007 you can create a shortcut by going to "Devices and Printers" right-clicking the phone and selecting "Create shortcut".

  2. Put the shortcut in a directory like "C:\Windows\BluetoothLink" by itself

  3. Install Autohotkey

  4. Right click on the Desktop, and choose "New" -> "AutohotkeyScript"

  5. Enter the following:

    #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
    SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
    
    #B::
        SetKeyDelay, 200
        Run, C:\Windows\BluetoothLink
        Sleep, 300
        Send, {Down}
        Sleep, 200
        Send, {AppsKey}
        Sleep, 550
        Send, {Down}
        Send, {Down}
        Send, {Right}
        Send, {Enter}
    
  6. Save the Autohotkey script (e.g. Ctrl-S)

  7. Double click the Autohotkey script to run it

  8. Press Win-B, test that it works

  9. Open your startup directory (e.g. press Win-R and type "shell:startup")

  10. Make a shortcut to the Autohotkey script (so that it works even after reboot).

One could perhaps make this fully automatic by scheduling a task on resume but I am not sure I would recommend fully automatic Autohotkey scripts stealing control of your keyboard from you. They tend to be a bit fiddly even when run manually.

You can bind Win-B to tether Bluetooth.

  1. As suggested by Techie007 you can create a shortcut by going to "Devices and Printers" right-clicking the phone and selecting "Create shortcut".

  2. Put the shortcut in a directory like "C:\Windows\BluetoothLink" by itself

  3. Install Autohotkey

  4. Right click on the Desktop, and choose "New" -> "AutohotkeyScript"

  5. Enter the following:

    #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
    SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
    
    #B::
        SetKeyDelay, 200
        Run, C:\Windows\BluetoothLink
        Sleep, 300
        Send, {Down}
        Sleep, 200
        Send, {AppsKey}
        Sleep, 550
        Send, {Down}
        Send, {Down}
        Send, {Right}
        Send, {Enter}
    
  6. Save the Autohotkey script (e.g. Ctrl-S)

  7. Double click the Autohotkey script to run it

  8. Press Win-B, test that it works

  9. Open your startup directory (e.g. press Win-R and type "shell:startup")

  10. Make a shortcut to the Autohotkey script (so that it works even after reboot).

One could perhaps make this fully automatic by scheduling a task on resume but I am not sure I would recommend fully automatic Autohotkey scripts stealing control of your keyboard from you. They tend to be a bit fiddly even when run manually.

Source Link
gmatht
  • 2.4k
  • 2
  • 20
  • 20

You can bind Win-B to tether Bluetooth.

  1. As suggested by Techie007 you can create a shortcut by going to "Devices and Printers" right-clicking the phone and selecting "Create shortcut".

  2. Put the shortcut in a directory like "C:\Windows\BluetoothLink" by itself

  3. Install Autohotkey

  4. Right click on the Desktop, and choose "New" -> "AutohotkeyScript"

  5. Enter the following:

    #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
    SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
    
    #B::
        SetKeyDelay, 200
        Run, C:\Windows\BluetoothLink
        Sleep, 300
        Send, {Down}
        Sleep, 200
        Send, {AppsKey}
        Sleep, 550
        Send, {Down}
        Send, {Down}
        Send, {Right}
        Send, {Enter}
    
  6. Save the Autohotkey script (e.g. Ctrl-S)

  7. Double click the Autohotkey script to run it

  8. Press Win-B, test that it works

  9. Open your startup directory (e.g. press Win-R and type "shell:startup")

  10. Make a shortcut to the Autohotkey script (so that it works even after reboot).

One could perhaps make this fully automatic by scheduling a task on resume but I am not sure I would recommend fully automatic Autohotkey scripts stealing control of your keyboard from you. They tend to be a bit fiddly even when run manually.