Jump to content

Recommended Posts

Posted

A usefull feature of the FileOpen function:

FileOpen("Com1", 4) opens the first serial port for binary input.

The exsample shows reading NMEA-data from a GPS receiver via Com4.

HotKeySet("{ESC}", "Terminate")

$file = FileOpen("COM4", 4)
While 1
    $chr = FileRead($file, 1)
    ConsoleWrite($chr)
WEnd

Func Terminate()
  FileClose($file)
  Exit
EndFunc

Posted Image

See also: Console Input - Read from console with FileRead

  • 1 month later...
  • 3 years later...
Posted

I cannot seem to get this to work, does this work with the current autoit build?

0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Posted

Some times I wish the raw read mode was not removed... Its removal also meant that random fun things like this can't be done as easily anymore :oops:

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...