Jump to content

Detect if Bluetooth Headset button is pressed


Recommended Posts

Hi,

i have to use SwyxIt phone client, but this software has no button support for bluetooth headsets. I can only use the GUI to answer a phone call.

I called the support, but there will maybe never be support for Headset buttons.

I am already able to use the button with Skype and some other software, so now i wan´t to write a script for this functionality :oops:

I know how to hook-on and hook-off the calls in swyxIt client, but i don´t know how do get the information if the button is pressed.

I am sure i need some DLL call to do it, but i´m not very familiar with using DLL´s :D

I have downloaded Dependency Walker to get DLL functions (not sure if this is the best tool...), but i don´t know what DLL i need. Maybe Windows 7 or driver DLL?

Does somebody know what DLL i need or how to do it?

My Headset: Sennheiser EZX60

My Notebook Bluetooth driver: Bluetooth_Broadcom_6.2.0.8000

OS: Windows 7 Pro 32 and 64bit

My already working test code for hookon and hookoff in Swyxit:

Dim $PhoneLineMgr
Dim $PhoneLineFocus
Dim $errval
$PhoneLineMgr = ObjCreate("CLMgr.ClientLineMgr")
$PhoneLineFocus = $PhoneLineMgr.DispSelectedLine
$PhoneLineFocus.DispHookOff
Edited by Matrix112
Link to comment
Share on other sites

I searched many Windows 7 dll´s and i only found the bthpanapi.dll with some Bluetooth function inside. But it seems to be only for Bluetooth Network. :oops:

Maybe i need to do it with the driver files?

I can order the BTW SDK from Broadcom: http://www.broadcom.com/support/bluetooth/sdk.php (I don´t know how to use an SDK...)

Is this the right way? Do i need the SDK or am i on the wrong way? :D

Edited by Matrix112
Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...