Jump to content

How can I use Bluetooth in AUTOIT?


BIBOT
 Share

Recommended Posts

Hi! I'm new with AutoIT and I would like to know if I can use or not Bluetooth with AutoIT. What I need is just to receive data (only one char per time) from a Blackberry Pearl 8130 (I've already got the RIM signature) to a PC via Bluetooth. Is it possible? How can I do it?

Thanks in advance!

Edited by BIBOT
Link to comment
Share on other sites

1. Bluetooth provides a virtual serialport which you can use with "mscomm32.ocx" or other RS-232 API´s

2.

Opt("MustDeclareVars",1)

Const $FILE = @ScriptFullPath
Local $handle,$line

$handle = FileOpen($FILE,0) ; read
If $handle == -1 Then    ; error
    Exit
EndIf
While 1
    $line = FileReadLine($handle) ; read one line from the file
    If @error Then                ; end of file or error
        ExitLoop
    EndIf
    MsgBox(0,"title",$line)       ; messagebox with current line
WEnd

For more information about Files, read the helpfile -> Functione Reference -> File, Directory, Disk-Management

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