Jump to content




key press in CCEdu


7 replies to this topic

#1 Hydrotronics

  • Members
  • 131 posts
  • LocationThe hall of 1000 monkeys and only 1 typewriter

Posted 11 June 2016 - 03: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

#2 Emma

  • Members
  • 216 posts
  • Locationtmpim

Posted 11 June 2016 - 05:32 PM

I'm sorry, but I do not believe this is possible in the current version of CCEdu

#3 Cloud Ninja

  • Members
  • 361 posts

Posted 11 June 2016 - 06:27 PM

in code you can pull events, such as char or key. Go look up pulling events in Computercraft.

#4 Emma

  • Members
  • 216 posts
  • Locationtmpim

Posted 11 June 2016 - 08:51 PM

View PostCloud Ninja, on 11 June 2016 - 06:27 PM, said:

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 by Incinirate, 11 June 2016 - 08:51 PM.


#5 Cloud Ninja

  • Members
  • 361 posts

Posted 11 June 2016 - 11:11 PM

View PostIncinirate, on 11 June 2016 - 08:51 PM, said:

View PostCloud Ninja, on 11 June 2016 - 06:27 PM, said:

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.

#6 Emma

  • Members
  • 216 posts
  • Locationtmpim

Posted 12 June 2016 - 12:08 AM

View PostCloud Ninja, on 11 June 2016 - 11:11 PM, said:

View PostIncinirate, on 11 June 2016 - 08:51 PM, said:

View PostCloud Ninja, on 11 June 2016 - 06:27 PM, said:

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.

#7 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 12 June 2016 - 12: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.

#8 Hydrotronics

  • Members
  • 131 posts
  • LocationThe hall of 1000 monkeys and only 1 typewriter

Posted 12 June 2016 - 07:55 AM

Ah ok! Thx! I shall go ahead and try that





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users