Jump to content
Sign in to follow this  
BIBOT

How can I use Bluetooth in AUTOIT?

Recommended Posts

BIBOT

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

Share this post


Link to post
Share on other sites
BIBOT

One more question, can I read some lines from a *.txt file using AutoIT???

Share this post


Link to post
Share on other sites
bluelamp

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.