[CC 1.33] [Beta 1.8.1] CCInput 0.27 (Big update!) - Play games on your giant monitor!
#161
Posted 05 October 2012 - 04:16 PM
#162
Posted 09 October 2012 - 02:46 AM
Exactly what is supposed to happen? The way it's described, the computer next to the IBlock should be receiving any "key" events (and "char" events?) from my keyboard while I have the remote in hand.
#163
Posted 11 October 2012 - 06:47 PM
now what i have to do ? e.e
#164
Posted 11 October 2012 - 11:17 PM
Enter lua, then use "for i,v in ipairs(peripheral.getMethods("right")) do print(i..". "..v) end" to verify that the IBlock is present on the right side of the computer. You should get back a list that looks like:
1. getKey
2. getKeyPressed
3. getKeyMouseWheel
... (I don't remember them all, the last was somethihg like "blockplayer")
If the block is present, then right-click it with your hand (or something else that doesn't have a right-click function) and you should have a little window pop-up that allows you to select the channel (when you exit that screen, a message should appear saying what channel you've assigned the block). If you can do that, then equip your remote and right-click on the block. You should get a message saying that you've set the remote to match the channel assigned to that block.
Then go back to the computer and (still in lua) enter something like:
"repeat evnt,prm1 = os.pullEvent() print(evnt..": "..prm1) until prm1 == 45"
This should print the event type and first parameter of each event the computer gets, until you press the x key (or some other event with a first parameter equal to 45 occurs). Verify this by pressing various keys (except the x key). If you did this right then you should see "key: 46" (or other numbers) and then "char: c" (or other characters) for as long as you don't push x.
Leave this running and exit the computer by pushing escape. Then fool around with turning the remote on and pressing some more keys (turn the remote off and press keys as well, I think that green is supposed to be on but I don't know for sure). Then go back to your computer.
The simple key logging should still be running if you didn't press x (so don't press it). If you see that additional key presses have been logged while you weren't using the computer, then that means that something is happening. If, on the other hand, you see that the only new event since you exited is the "key: 1" from pushing the escape button, then I feel your pain because I am currently in the same situation.
If this helps you at all (as in, you get the computer to receive key/char events by using the remote) then I plead with you for precise descriptions of what you did.
Oops, left out a "=" Let me know if anything I told you doesn't work or works differently than I said it would.
Edited by ChunLing, 11 October 2012 - 11:19 PM.
#165
Posted 12 October 2012 - 12:41 PM
ChunLing, on 11 October 2012 - 11:17 PM, said:
Enter lua, then use "for i,v in ipairs(peripheral.getMethods("right")) do print(i..". "..v) end" to verify that the IBlock is present on the right side of the computer. You should get back a list that looks like:
1. getKey
2. getKeyPressed
3. getKeyMouseWheel
... (I don't remember them all, the last was somethihg like "blockplayer")
If the block is present, then right-click it with your hand (or something else that doesn't have a right-click function) and you should have a little window pop-up that allows you to select the channel (when you exit that screen, a message should appear saying what channel you've assigned the block). If you can do that, then equip your remote and right-click on the block. You should get a message saying that you've set the remote to match the channel assigned to that block.
Then go back to the computer and (still in lua) enter something like:
"repeat evnt,prm1 = os.pullEvent() print(evnt..": "..prm1) until prm1 == 45"
This should print the event type and first parameter of each event the computer gets, until you press the x key (or some other event with a first parameter equal to 45 occurs). Verify this by pressing various keys (except the x key). If you did this right then you should see "key: 46" (or other numbers) and then "char: c" (or other characters) for as long as you don't push x.
Leave this running and exit the computer by pushing escape. Then fool around with turning the remote on and pressing some more keys (turn the remote off and press keys as well, I think that green is supposed to be on but I don't know for sure). Then go back to your computer.
The simple key logging should still be running if you didn't press x (so don't press it). If you see that additional key presses have been logged while you weren't using the computer, then that means that something is happening. If, on the other hand, you see that the only new event since you exited is the "key: 1" from pushing the escape button, then I feel your pain because I am currently in the same situation.
If this helps you at all (as in, you get the computer to receive key/char events by using the remote) then I plead with you for precise descriptions of what you did.
Oops, left out a "=" Let me know if anything I told you doesn't work or works differently than I said it would.
#166
Posted 12 October 2012 - 04:03 PM
> lua Interactive Lua prompt Call exit() to exit lua>It is here that you enter things like "for i,v in ipairs(peripheral.getMethods("right")) do print(i..": "..v) end"
If you want a break down of each line I provided, I can do that.
#167
Posted 14 October 2012 - 03:58 AM
#168
Posted 24 October 2012 - 01:35 AM
I tried CCInput2 but cant get it to work with MC 1.2.5. Has anyone been able to get this to work? What are the steps to capture keys. I just want to capture keys away from terminal. How?
#169
Posted 24 October 2012 - 02:57 AM
I'm using CCPortable, it only works with programs specifically written to use it, but at least it works.
#170
Posted 24 October 2012 - 03:05 AM
I'd like to know how to remove the menu darkening effect to make this even easier to see. Know of any way to do this?
#171
Posted 24 October 2012 - 03:28 AM
#172
Posted 24 October 2012 - 02:46 PM
skrypt, on 24 October 2012 - 01:35 AM, said:
I tried CCInput2 but cant get it to work with MC 1.2.5. Has anyone been able to get this to work? What are the steps to capture keys. I just want to capture keys away from terminal. How?
Just link the remote and use os.pullEvent()
Also, I'm not gonna do much work just to get CCInput2 working for people who are two updates behind.
#173
Posted 24 October 2012 - 07:24 PM
#174
Posted 24 October 2012 - 08:40 PM
ChunLing, on 24 October 2012 - 07:24 PM, said:
#175
Posted 25 October 2012 - 01:17 AM
I mean, it's okay, after I'm through the creation quests I'll probably just port the world and remove the village data...well, no, I guess that wouldn't help much. After I'm finished, I'll just backup the whole .minecraft folder and start new worlds on the newest version. I can always go back if I decide I want to.
Edited by ChunLing, 25 October 2012 - 01:20 AM.
#176
Posted 25 October 2012 - 01:38 AM
Hackingroelz, on 24 October 2012 - 02:46 PM, said:
skrypt, on 24 October 2012 - 01:35 AM, said:
I tried CCInput2 but cant get it to work with MC 1.2.5. Has anyone been able to get this to work? What are the steps to capture keys. I just want to capture keys away from terminal. How?
Just link the remote and use os.pullEvent()
Also, I'm not gonna do much work just to get CCInput2 working for people who are two updates behind.
I've done that, and it does not work. Not sure how to be more descriptive of what I might be doing wrong. I run the os.pullEvent() and step away from the terminal, link the remote and try typing. No dice. Sometimes the remote wont even toggle between red/green states.
Is there more of a step by step procedure you can offer?
#177
Posted 25 October 2012 - 01:56 AM
3 user(s) are reading this topic
0 members, 3 guests, 0 anonymous users