Would like to paste and enter a string into PST input window
Don M
Posts: 1,652
Currently I enter 12 characters one at a time as I type them in into memory using this code:
It works well for 1 character at a time but I would also like to be able to paste a string of 12 characters into the PST input window and press the Return key to have them entered in.
How do I modify my code in order to do this?
Any help or suggestions appreciated.
Thanks.
Don
repeat while bytesread < 12 tmp := term.Rx if ((tmp == 10) OR (tmp ==13) OR (tmp == "*")) QUIT if ((tmp => ("0")) and (tmp =< ("9"))) OR ((tmp => ("A")) and (tmp =< ("F"))) byte[@MachID][bytesread] := tmp i2c.WriteByte(i2c#BOOTPIN, EE_DEVICE_ADDR, (EE_BASE_ADDR + bytesread), tmp) term.tx(tmp) ' For debugging message bytesread++
It works well for 1 character at a time but I would also like to be able to paste a string of 12 characters into the PST input window and press the Return key to have them entered in.
How do I modify my code in order to do this?
Any help or suggestions appreciated.
Thanks.
Don
Comments
Thanks for your comment.