Hi,
I'm still pretty much a beginner. I'm putting together a small app to read and write to a serial port. I can read from a string gadget and send that to the serial port ok, and I can write incoming text to the editor gadget.
However, if I want to write character by character as I type from the editor gadget to the serial port it does not seem at all straightforward.
This is for windows so should be I be looking at the API for keyboard or the editor controls?
If someone could just point me in the right direction as looking through the forum there seems to be a number of possibilities but I'm not sure which way to go.
Thanks
Writing from an editor Gadget
Mmmm. From the editor gadget would indeed be a bit tricky... Either you would have to compare new and old contents of the gadget, and send the differences (not good) or grab and process keyboard input before passing it on.
What are you trying to build? A terminal app or something similar?
What are you trying to build? A terminal app or something similar?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )