Jump to content

Connect bluetooth device per script


bthuser
 Share

Recommended Posts

Hi folks,

can you please help me with scripting Autoit? I want to connect a bluetooth mouse via script.

Now I start bthprops.cpl and send keystrokes, but that's too fault-prone.

How can I do this using Windows API?

I need to:

- discover bluetooth device

- connect "

- ???

Can someone help me doing that?

Thank you.

Edited by bthuser
Link to comment
Share on other sites

I need to:

- discover bluetooth device

I can only help you with this part, check my Bluetooth Finder Tool (see my signature)...

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Link to comment
Share on other sites

  • 5 months later...

I didn't get it. Is somebody of you experienced with connecting Bluetooth devices, DllCalls and structs?

I think the key is BluetoothRegisterForAuthenticationEx(), BluetoothSendAuthenticationResponseEx() and BluetoothUnregisterAuthentication().

Link to comment
Share on other sites

To fully utilize the bluetooth of your PC and perform tasks like file-transfer on phone etc. you need WinSock and the OBEX protocol (you will have to implement it by yourself or some third party program, since MS doesn't provide any way). OR you could use the COM ports as well (easiest approach for me)

I think I'll get back to writing more code on using Bluetooth with AU3 someday. Till then, good luck.

MKISH

Edited by MKISH

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Link to comment
Share on other sites

  • 2 weeks later...

Can't find it. Above or below the Dropbox link? You took it down huh?

That post is the November issue of last year. Though I took down my signature, still you can find it here:

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Link to comment
Share on other sites

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...