Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Read serial port snippet
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: Read serial port snippet (Read 1765 times)
0 Members and 1 Guest are viewing this topic.
divtiply
Guest
Read serial port snippet
«
on:
August 26, 2014, 02:29:34 PM »
For those who need it:
(setq com (open "\\\\.\\COM1" "r"))
...
(close com)
Logged
hmspe
Bull Frog
Posts: 362
Re: Read serial port snippet
«
Reply #1 on:
August 26, 2014, 04:25:54 PM »
Is there similar syntax for stdin (keyboard)?
Logged
"Science is the belief in the ignorance of experts." - Richard Feynman
divtiply
Guest
Re: Read serial port snippet
«
Reply #2 on:
August 26, 2014, 06:17:53 PM »
Quote from: hmspe on August 26, 2014, 04:25:54 PM
Is there similar syntax for stdin (keyboard)?
Short answer: NO.
Long answer: yes, but only for _console_ applications (which AutoCAD is not) - there are CONIN$ and CONOUT$ device files.
Logged
hmspe
Bull Frog
Posts: 362
Re: Read serial port snippet
«
Reply #3 on:
August 26, 2014, 09:07:17 PM »
Thanks. I was hoping for an easy way to read the keys that grread does not return.
Logged
"Science is the belief in the ignorance of experts." - Richard Feynman
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Read serial port snippet