Jujo Posted October 27, 2008 Share Posted October 27, 2008 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 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 Link to comment Share on other sites More sharing options...
Andreik Posted October 27, 2008 Share Posted October 27, 2008 (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 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. 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 October 27, 2008 by Andreik When the words fail... music speaks. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now