Bluetooth Enable/Disable Toggle
Bluetooth Enable/Disable Toggle
Hello,
I'd like to create a script to turn bluetooth on or off without having to go into Windows settings. Is this possible? Thanks
I'd like to create a script to turn bluetooth on or off without having to go into Windows settings. Is this possible? Thanks
-
- Posts: 42
- Joined: 01 Feb 2017, 09:33
Re: Bluetooth Enable/Disable Toggle
I'm attempting to do something simliar via AHK. Essentially it's possible via Powershell, and I'm tyring to wrap powershell inside AHK so I can perform some additional functions. Although I'm currently receiving an error when launching it via AHK. I mention in case it meets your needs. Below is the thread I started.
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=67129
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=67129
Re: Bluetooth Enable/Disable Toggle
Hi @cjsmile999 , I looked at your other thread and you are light years ahead of me on scripting. I wish I could help though. Please let me know if you figure it out.
Dave
Dave
-
- Posts: 42
- Joined: 01 Feb 2017, 09:33
Re: Bluetooth Enable/Disable Toggle
radar81, I was able to work out my issue. I've updated the script on my post. Feel free to use/modify as needed to meet your needs.
Re: Bluetooth Enable/Disable Toggle
Hi @cjsmile999, thanks for the update. I'm going to ask you a question with respect to the content of your code on the other thread.
Re: Bluetooth Enable/Disable Toggle
Code: Select all
SendMode Input
Run, ms-settings:bluetooth
WinWaitActive, Settings
Sleep 2000
Send,{Tab}{Space}
WinClose, A
Re: Bluetooth Enable/Disable Toggle
A shortcut key for something that requires two clicks?
Click on the actions center button next to the clock=>click on the Bluetooth icon and done
https://www.digitalcitizen.life/turn-on-off-bluetooth-windows-10
Click on the actions center button next to the clock=>click on the Bluetooth icon and done
https://www.digitalcitizen.life/turn-on-off-bluetooth-windows-10
-
- Posts: 34
- Joined: 09 Jun 2017, 09:19
Re: Bluetooth Enable/Disable Toggle
Were you able to actually get this working? I tried turning Bluetooth On and Off using this.
Code: Select all
btconfig -c 0
btconfig -c 1
btconfig -d 0
btconfig -d 1