Home > windows 7 > How can I script a bluetooth device to connect/disconnect?

How can I script a bluetooth device to connect/disconnect?

April 3Hits:2
Advertisement

I have bluetooth headphones which I use to both listen to music from my mobile phone and to listen to videos on my laptop. They cannot be connected to both devices at once (note here), so I have to disconnect from one device before connecting to the next device.

To do this on Windows 7, I have to open Devices and Printers, open my bluetooth headphones, and click on the Connect/Disconnect button. I'd love to be able to run a script that triggers that Connect/Disconnect button. That way I could have a shortcut on the desktop or add a keyboard shortcut.

I've streamlined it somewhat by creating a shortcut to the bluetooth heaphones window (in Devices and Printers, right click on your bluetooth device and choose Create Shortcut). But it would be good to streamline further.

Related Articles

  • How can I script a bluetooth device to connect/disconnect?April 3

    I have bluetooth headphones which I use to both listen to music from my mobile phone and to listen to videos on my laptop. They cannot be connected to both devices at once (note here), so I have to disconnect from one device before connecting to the

  • Starting custom script after input device is connectedJuly 15

    I have a Genius tablet and I need to remap some buttons on it when I connect it to the usb. The remmaping is done by this command: xinput set-button-map 'Genius EasyPen M610X' 0 0 0 0 0 0 0 1 3 2 and I'm using udev to call a script like this: #!/bin/

  • Tasker: Run a task when a specific bluetooth device loses connectionJanuary 17

    I want to run a task every time my phone loses connection to my truck's bluetooth device. I can see a way to run a task when it connects, and obviously I can "invert" it, but inverting it doesn't sound right to me. What is the right way to run a

  • windows 8.1 can't remove existing paired bluetooth device nor connect new oneApril 28

    I have a surface pro 3 with windows 8.1 and currently installed microsoft sculpt touch mouse and creative inspire 2 sound system. I have bought a new bluetooth microsoft sculpt mobile keyboard. The keyboard is not recognized by my surface. It is reco

  • Bluetooth Manager no loger find Bluetooth Devices - yet connects to headsetMay 12

    I have Ubuntu 14.04.1 and am running Unity. Using Gnome Bluetooth Manager (Tried blueman also) . It used to discover new bluetooth devices - it no longer does - yet still connects to my bluetooth headset which was paired. I need to be able to connect

  • Unauthorised Bluetooth device keeps connecting to Mac

    Unauthorised Bluetooth device keeps connecting to MacMay 18

    Recently I started experiencing frequent random lags with a Bluetooth mouse I have connected to my iMac: the tracking speed would suddenly drop for a few seconds before returning back to normal. One time, while it was happening, I quickly clicked the

  • MATE DE / Gnome DE - run a script when a device gets connectedSeptember 5

    I know udev scripts can handle this. Does an interface exist at the X session level that doesn't require superuser priviliges? I'd like to run a script when an external keyboard or an external mouse gets connected.

  • How to script vpncmd to batch command connect/disconnect?April 5

    Here is my connect.bat -----BEGIN------ vpncmd localhost /client accountconnect myConnectionName -----END------ After executing connect.bat, here is the screen result: Connected to VPN Client "localhost". VPN Client> accountconnect myConnecti

  • Autoconnecting Bluetooth DevicesOctober 20

    Is there a way to set the Bluetooth in Ubuntu to autoconnect to devices it is paired to when it is turned on. Furthermore, is there a way to automatically change the sound output to a Bluetooth headset on connection? --------------Solutions----------

  • Limit to the number of devices that can be paired with a Bluetooth device?September 7

    I'm considering using Bluetooth as a wireless solution for a power saving system. Today I was told that there may be a 8 device limit for Bluetooth. I cannot find any information about this for Bluetooth in general. Does this statement hold any truth

  • How many active Bluetooth devices can I reliably detect in a single space?November 8

    I am engineering a low-cost attraction and hope to use Bluetooth device identification for proximity detection -- i.e. is guest A within range of static location X. Each guest will be given a customized mobile device (either iPod or Android based). W

  • Set bluetooth device to pair ONLY manuallyNovember 20

    In our home we have one Bose SoundLink Mini device with two paired phones (one iPhone 6S Plus, and one Android device). The only way I can prevent mine from pairing is by turning off Bluetooth, which is annoying, because I use my headset regularly. I

  • Use WMI ManagementEventWatcher to listen for Bluetooth devices connected/disconnectedFebruary 13

    New to WMI and am kind of feeling around in the dark a bit, The following code detects connecting and disconnecting USB devices, but I also need to detect when a BT device is connected/disconnected (not just paired). ManagementEventWatcher watcher =

  • Mine imperfect way to get "BLUETOOTH headset auto connect "(Still need help) October 20

    Is there a way to set the Bluetooth in Ubuntu to autoconnect to devices it is paired to when it is turned on. Furthermore, is there a way to automatically change the sound output to a Bluetooth headset on connection? --------------Solutions----------

  • How can I have a Bluetooth Keyboard Auto-Connect at Startup?December 15

    I have a bluetooth keyboard for my HTPC. I pair it with my computer via bluetooth, and it works fine. However, when I turn off the keyboard or my computer, it has to connect again (which requires me entering a passcode on the computer and keyboard) w

  • Can Tasker/Locale tell me what BT device is connected?January 9

    I want to change the phone's state dependent on which specific bluetooth device is connected -- can Tasker or Locale do that? Thanks! --------------Solutions------------- Yes. Tasker will do this. When you're setting up the state, choose "bluetooth c

  • I want to run a script when known bluetooth device connects/disconnects to WinXPMay 12

    I have a laptop on my desk at work. I have screensaver timer enabled, so if I'm not using the computer for ten minutes, it will start the screensaver. I also have "On resume, password protect" option checked. This is useful and I want it to be s

  • How do I run a script when a Bluetooth device connects?

    How do I run a script when a Bluetooth device connects?May 17

    I'd like to start my music player (Clementine) when my bluetooth headset connects to my computer. How do I detect the bluetooth device connecting so I can run a script to start the player? --------------Solutions------------- I didn't like the pollin

  • How to create a windows batch file that sends a file to a bluetooth device?July 6

    I'm always sending one file to a device. The device is always the same and the file has the same path and name. How do I write a batch file to do this? --------------Solutions------------- For Widcomm stack you shoud try C:\Program Files\Widcomm\Blue

  • Connect to bluetooth device from command line

    Connect to bluetooth device from command lineJune 10

    Background: I'm using my bluetooth headset as audio output. I managed to get it working by the long list of instructions on BluetoothHeadset community documentation, and I have automated the process of activating the headset as default audio output i

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.571 s.