Jump to content

Recommended Posts

Posted

I just discovered this DLL and au3 script. It looks fantastic. My one "however" is - have you thought of including (for Windows people of course) a function that does a MODE command? The MODE command (windows dos cli) returns the information about all communication ports currently in use. Like so:Which would allow you to know all about whichever com port you want to use. It is also easy to parse (at least in PHP it is). You just shift each line off of the array and look for things like "Status for devce" and so forth. A lot easier than trying to guess what each communication port is set up like.

c:>MODE

Status for device COM1:
-----------------------
    Baud:            115200
    Parity:          None
    Data Bits:       8
    Stop Bits:       1
    Timeout:         ON
    XON/XOFF:        OFF
    CTS handshaking: OFF
    DSR handshaking: OFF
    DSR sensitivity: OFF
    DTR circuit:     OFF
    RTS circuit:     OFF


Status for device COM4:
-----------------------
    Baud:            115200
    Parity:          None
    Data Bits:       8
    Stop Bits:       1
    Timeout:         OFF
    XON/XOFF:        OFF
    CTS handshaking: OFF
    DSR handshaking: OFF
    DSR sensitivity: OFF
    DTR circuit:     OFF
    RTS circuit:     OFF


Status for device CON:
----------------------
    Lines:          9001
    Columns:        120
    Keyboard rate:  31
    Keyboard delay: 1
    Code page:      437

Just wonderig. :-)

 

Black holes are where God divided by zero

 

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