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

key press in CCEdu

Started by Hydrotronics, 11 June 2016 - 02:05 PM
Hydrotronics #1
Posted 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/>
Emma #2
Posted 11 June 2016 - 06:32 PM
I'm sorry, but I do not believe this is possible in the current version of CCEdu
Cloud Ninja #3
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.
Emma #4
Posted 11 June 2016 - 09:51 PM
in code you can pull events, such as char or key. Go look up pulling events in Computercraft.
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.
This is just because of the way the interface works in CCEdu
Edited on 11 June 2016 - 07:51 PM
Cloud Ninja #5
Posted 12 June 2016 - 12:11 AM
in code you can pull events, such as char or key. Go look up pulling events in Computercraft.
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.
This is just because of the way the interface works in CCEdu
I have personally done it before.
Emma #6
Posted 12 June 2016 - 01:08 AM
in code you can pull events, such as char or key. Go look up pulling events in Computercraft.
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.
This is just because of the way the interface works in CCEdu
I have personally done it before.
Oh great! Can you share some example code and where to input because I could not figure out how to do it.
Bomb Bloke #7
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.
Hydrotronics #8
Posted 12 June 2016 - 08:55 AM
Ah ok! Thx! I shall go ahead and try that