This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
GopherAtl's profile picture

code to generate ctrl-key shortcut events

Started by GopherAtl, 05 January 2013 - 08:59 AM
GopherAtl #1
Posted 05 January 2013 - 09:59 AM
Merging this into the old goroutines thread.
For all ctrlkey-related questions and updates,
[indent=3]head over there![/indent]
bjornir90 #2
Posted 09 January 2013 - 07:46 AM
Really interesting ! This is really useful for some advanced program :P/>
zekesonxx #3
Posted 16 January 2013 - 04:50 AM
parallel:22: ctrlKeysTest:15: attempt to concatenate boolean and string
theoriginalbit #4
Posted 16 January 2013 - 04:58 AM
parallel:22: ctrlKeysTest:15: attempt to concatenate boolean and string
Seems to me that on line 15 of your code, in the file crelKeysTest, you are attempting to combine a Boolean and a string into one string. Not an issue with his code, but yours. Use tostring function around the Boolean.
zekesonxx #5
Posted 16 January 2013 - 05:08 AM
parallel:22: ctrlKeysTest:15: attempt to concatenate boolean and string
Seems to me that on line 15 of your code, in the file crelKeysTest, you are attempting to combine a Boolean and a string into one string. Not an issue with his code, but yours. Use tostring function around the Boolean.
I can read Lua errors too. It's his test code.
GopherAtl #6
Posted 16 January 2013 - 07:12 AM
sorry about that, the version on the forum in the code tags was right but somehow the version on pastebin didn't get updated.

While testing it now also spotted a minor bug in a more recent update to the ctrlkeys api, which added some optional support for my goroutines api. Nothing that should've affected anyone unless they were using goroutines and digging through the source of both to figure out how the new features worked (I haven't explained or even mentioned them in either thread).

Fixed, here and on pastebin.
Lyqyd #7
Posted 16 January 2013 - 06:21 PM
Locked by request.