I don't mind whether it's in the Visual editor or the Code Editor :P/>
This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
key press in CCEdu
Started by Hydrotronics, 11 June 2016 - 02:05 PMPosted 11 June 2016 - 04:05 PM
Hello! I wanted to know if it was possible to get a key press in CCEdu turtles. This is because I want to make a program which allows you to control it and say stuff without using the default buttons cuz that takes too long :P/>
I don't mind whether it's in the Visual editor or the Code Editor :P/>
I don't mind whether it's in the Visual editor or the Code Editor :P/>
Posted 11 June 2016 - 06:32 PM
I'm sorry, but I do not believe this is possible in the current version of CCEdu
Posted 11 June 2016 - 07:27 PM
in code you can pull events, such as char or key. Go look up pulling events in Computercraft.
Posted 11 June 2016 - 09:51 PM
This I am aware of, but in the ComputercraftEdu version of computercraft, pulling a char or key event does not work. I tested it before making that post.in code you can pull events, such as char or key. Go look up pulling events in Computercraft.
This is just because of the way the interface works in CCEdu
Edited on 11 June 2016 - 07:51 PM
Posted 12 June 2016 - 12:11 AM
I have personally done it before.This I am aware of, but in the ComputercraftEdu version of computercraft, pulling a char or key event does not work. I tested it before making that post.in code you can pull events, such as char or key. Go look up pulling events in Computercraft.
This is just because of the way the interface works in CCEdu
Posted 12 June 2016 - 01:08 AM
Oh great! Can you share some example code and where to input because I could not figure out how to do it.I have personally done it before.This I am aware of, but in the ComputercraftEdu version of computercraft, pulling a char or key event does not work. I tested it before making that post.in code you can pull events, such as char or key. Go look up pulling events in Computercraft.
This is just because of the way the interface works in CCEdu
Posted 12 June 2016 - 01:32 AM
You use the same code as you usually would - once you've shut the CCEdu Code Editor down. Switch to that first, then use Ctrl+T to exit back to the regular CraftOS shell. You should be able to proceed from there normally.
Posted 12 June 2016 - 08:55 AM
Ah ok! Thx! I shall go ahead and try that