Jump to content
Sign in to follow this  
bthuser

Connect bluetooth device per script

Recommended Posts

bthuser

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

Share this post


Link to post
Share on other sites
stormbreaker

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

Share this post


Link to post
Share on other sites
bthuser

Oh, thank you rudi and MKISH for your help.

The MSDN information is very confusing. But i'll try it...

Share this post


Link to post
Share on other sites
bthuser

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

Share this post


Link to post
Share on other sites
stormbreaker

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

Share this post


Link to post
Share on other sites
bthuser

Thanks, MKISH. I only wanted to connect the Bluetooth mouse to my computer.

Share this post


Link to post
Share on other sites
Xandy

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

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

Share this post


Link to post
Share on other sites
stormbreaker

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

Share this post


Link to post
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
Sign in to follow this  

×