463 posts
Location
Star Wars
Posted 25 March 2016 - 02:06 PM
Is there a way to give an standard text?
So it returns:
Filename: standardFile_
The _ stands for the cursor.
756 posts
Posted 25 March 2016 - 03:59 PM
Is there a way to give an standard text?
So it returns:
Filename: standardFile_
The _ stands for the cursor.
Unfortunately no, but a very hacky way to achieve this would be to queue a key event for each character right before the read().
Edited on 25 March 2016 - 03:00 PM
463 posts
Location
Star Wars
Posted 25 March 2016 - 04:03 PM
thanks
756 posts
Posted 25 March 2016 - 04:50 PM
Example code:
local s = "standardFile"
for letter in s:gmatch(".") do os.queueEvent("char", letter) end
read() #-- Will have "standardFile" already written.
Edited on 25 March 2016 - 03:50 PM
463 posts
Location
Star Wars
Posted 25 March 2016 - 08:45 PM
Thx