Giter Site home page Giter Site logo

flashgordo7 / win10-bluetooth-headphones Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stanleyguevara/win10-bluetooth-headphones

1.0 0.0 0.0 20 KB

Connect / disconnect your BT headphones with one button on Win10

Batchfile 30.43% VBScript 69.57%

win10-bluetooth-headphones's Introduction

One button connect/disconnect Bluetooth headphones on Windows 10!

  1. Clone or download this repo
  2. Install BluetoothCLTools (say yes when asked to add tools dir to path) Direct download
  3. Run btdiscovery in command line to get your headphones MAC address
  4. Paste the MAC address into first line of mac.txt file and save

That's it!

Now you can double-click connect.vbs or disconnect.vbs to connect/disconnect your BT headphones.

But I don't want to click...

Well, you can bind the script to some media keyboard button or use Autohotkey to do some fancy shortcut.

The simplest option (that I'm using) is binding the toggle.vbs script to some media key using this method

So how does it work?

Win10 automatically disconnects BT device after all services the device offers are disabled.

This script simply disables services offered by selected BT device.

Same same on connect.

But it doesn't work for me!

Check if your headphones offer more BT services than:

  • Hands-Free Profile (111E)
  • A2DP AudioSink (110B)

If so, add them to connect.bat and disconnect.bat files.

The list of services can be found here.

Credit where it's due:

This guy on superuser!

win10-bluetooth-headphones's People

Contributors

stanleyguevara avatar

Stargazers

PirulitoGonorsofia avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.