Jump to content

Recommended Posts

Posted

Hi

I need help with command for output through serial port. I know this command in BASIC (out), but BASIC is not as good as AutoIt, probably because I am playing around with AutoIt for longer time :P

So, my question is - is there any command in AutoIt that is similar to BASIC's out xxx,y

Please, help me, because I need it for robotics, really fast.

Thanks :(

Posted (edited)

Hi

I need help with command for output through serial port. I know this command in BASIC (out), but BASIC is not as good as AutoIt, probably because I am playing around with AutoIt for longer time :idea:

So, my question is - is there any command in AutoIt that is similar to BASIC's out xxx,y

Please, help me, because I need it for robotics, really fast.

Thanks :)

At the risk of seemed stale, you can write the program in QBasic, compile and then run it with parameters that you want.

I remember the old Basic programs, and I let go with the flow. :(:P

This can be your Basic progam, and the run it from AutoIt:

OPTION BASE 1
CMDLINE$ = COMMAND$
DIM P(2) AS INTEGER
COUNT$ = 1
FOR INDEX$ = 1 TO LEN(CMDLINE$)
IF MID$(CMDLINE$, INDEX$, 1) = " " THEN
P(COUNT$) = INDEX$
COUNT$ = COUNT$ + 1
END IF
NEXT INDEX$
PORT$ = MID$(CMDLINE$, P(1) + 1, P(2) - P(1) - 1)
DTA$ = MID$(CMDLINE$, P(2) + 1, LEN(CMDLINE$) - P(2))
OUT PORT$, DTA$

But is more easy and accessible with AutoIt.

Try this.

Edited by Andreik

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
×
×
  • Create New...