View Full Version : Toggle Bluetooth on Connect Power
NekoHunter
22nd June 2009, 10:24 AM
Is there any software that will turn on Bluetooth when power is connected, then turn it back off again when it is disconnected? I'd love this, so that I could have Bluetooth in the car and at home, but not have it suck the battery dry the rest of the time, and I'm too lazy/forgetful to switch it myself.
jez83uk
22nd June 2009, 10:56 AM
It shouldn't be too hard for you to create a mortscript to do this. Search for the mortscript examples accumulation page on here if you want a few tips, or possibly someone has already made one.
NekoHunter
22nd June 2009, 05:49 PM
Thanks for the suggestion Jez. It only took me a short while to download and install Mortscript and get it working with VJVolubilis from vijay555.com :D
# BluetoothOnPower.mscr
# Author nekohunter@gmail.com
#
# Enable Bluetooth when external power is connected, turn it off when disconnected.
# Requires VJVolubilis from vijay555.com
#
currentpowerstate = ExternalPowered()
while(1)
if(ExternalPowered() = currentpowerstate)
Else
Switch(ExternalPowered())
Case(1)
RunWait("\Program Files\vijay555\VJVolubilis\VJVolubilis.exe", "-blueon")
Case(0)
RunWait("\Program Files\vijay555\VJVolubilis\VJVolubilis.exe", "-blueoff")
EndSwitch
currentpowerstate = ExternalPowered()
EndIf
Sleep(2000)
EndWhile
vijay555
10th July 2009, 11:36 PM
This could be built into VJVolubilis if really required, but Mortscript will give greater flexibility... I'd stick with Mortscript.
http://s2.buzzfeed.com/static/imagebuzz/terminal01/2009/7/5/13/just-drinking-some-coffee-17281-1246816737-2.jpg
V
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.