MaxtheWeirdo wrote:
You could just stack up or blocks like this: [blocks]
<< << <or> >> <or> << <or> >> >> [/blocks] ect.
I KNOW, but the whole idea of this block is CONVIENCE. (No one understands!)
Offline
shadow_7283 wrote:
MaxtheWeirdo wrote:
You could just stack up or blocks like this: [blocks]
<< << <or> >> <or> << <or> >> >> [/blocks] ect.I KNOW, but the whole idea of this block is CONVIENCE. (No one understands!)
I do.
Offline
LOL it was so easy....
keyPressed
"Answer the currently pressed key."
self keyNames do: [:ch |
(self keyPressed: ch) ifTrue: [^ ch]].
^ ''.
Block spec:
('key pressed' #r #keyPressed)
Or for those who use the source (Go you!):
('key pressed' r keyPressed)
Last edited by nXIII (2010-04-04 15:07:40)
Offline
nXIII wrote:
LOL it was so easy....
keyPressed
"Answer the currently pressed key."
self keyNames do: [:ch |
(self keyPressed: ch) ifTrue: [^ ch]].
^ ''.Block spec:
('key pressed' #r #keyPressed)
Or for those who use the source (Go you!):
('key pressed' r keyPressed)
I'm not sure whether to thank you or strangle you. I have been waiting and BEGGING for so long and you say "LOL it was so easy..."
Offline
I'll settle for thanks, so...
THANKS!
On another note, time to optimize all my text related projects!
Offline
shadow_7283 wrote:
I'm not sure whether to thank you or strangle you. I have been waiting and BEGGING for so long and you say "LOL it was so easy..."
![]()
Sorry, I have been mainly working on other blocks for Panther.
Last edited by nXIII (2010-04-04 21:33:29)
Offline
nXIII wrote:
shadow_7283 wrote:
nXIII wrote:
LOL it was so easy....
keyPressed
"Answer the currently pressed key."
self keyNames do: [:ch |
(self keyPressed: ch) ifTrue: [^ ch]].
^ ''.Block spec:
('key pressed' #r #keyPressed)
Or for those who use the source (Go you!):
I'm not sure whether to thank you or strangle you. I have been waiting and BEGGING for so long and you say "LOL it was so easy..."
![]()
Sorry, I have been mainly working on other blocks for Panther.
What's Panther?
Offline
nXIII wrote:
shadow_7283 wrote:
What's Panther?
My/other people's Scratch mod.
Cool? Here's another question to bother you with. I have try every possible way I can think of to add the shift key, /, and ., to the key pressed block. How do you do it?
Offline
shadow_7283 wrote:
nXIII wrote:
shadow_7283 wrote:
What's Panther?
My/other people's Scratch mod.
Cool? Here's another question to bother you with. I have try every possible way I can think of to add the shift key, /, and ., to the key pressed block. How do you do it?
Find their ascii code?
/ = 47
. = 46
shift = 14/15
Offline
Already tried that. I edited the
KeyPressed
KeyPressed:
ACII
sections, with no luck...
Offline
MathWizz wrote:
shadow_7283 wrote:
Already tried that. I edited the
KeyPressed
KeyPressed:
ACII
sections, with no luck...Edit keyNames.
I forgot to mention that one too. I tried that.
Could anyone with hacked key pressed sensing just give me their code?
Offline
shadow_7283 wrote:
MathWizz wrote:
shadow_7283 wrote:
Already tried that. I edited the
KeyPressed
KeyPressed:
ACII
sections, with no luck...Edit keyNames.
I forgot to mention that one too. I tried that.
Could anyone with hacked key pressed sensing just give me their code?
OK. I'll give you all of the steps. First go to keyNames and add 'shift' to the list. Next, go to asciiFor: and add the line:
'shift' localized = localizedKey ifTrue: [^ 16].
below:
'left arrow' localized = localizedKey ifTrue: [^ 28].
It should work just fine.
Offline
Thanks, I was putting the wrong form of code, though for some reason yours doesn't work for me. Here is mine:
'shift' = t1 ifTrue: [^ 16].
Offline
shadow_7283 wrote:
Thanks, I was putting the wrong form of code, though for some reason yours doesn't work for me. Here is mine:
Code:
'shift' = t1 ifTrue: [^ 16].
SOURCE CODE HACKER! DOWNLOAD IT! (Just kidding...)
Last edited by nXIII (2010-04-06 19:33:46)
Offline
Wait, how come that doesn't work for other keys? I tried inserting / . , : ; + = * ( ) - and none of them work...
Offline
zorket wrote:
Cool!
OMGBBQNECROPOST
Dont revive old posts just to say:
cool.
Last edited by bbbeb (2010-09-12 13:05:02)
Offline
These all work with the key pressed block, but they don't with the key hat block.
Offline
TheSuccessor wrote:
These all work with the key pressed block, but they don't with the key hat block.
there's a different execution method for that. you need to change the KeyEventHatBlock for it to work i think.
Offline
zorket wrote:
bbbeb wrote:
zorket wrote:
Cool!
OMGBBQNECROPOST
![]()
Dont revive old posts just to say:
cool.I just like the topic slightly
![]()
DON'T DO THAT!![]()
REPEAT:
OMGWTHBBQNECROPOSTER
Offline
Stop please. Do you want this to get closed?
Offline
Paddle2See wrote:
Wouldn't this work?
[blocks]
<when green flag clicked>
<set{ Key Pressed }to( None
<when[ Space ]key pressed>
<set{ Key Pressed }to( Space
<wait until><< <not> <key[ Space ]pressed?> >>
<set{ Key Pressed }to( None
<when[ A ]key pressed>
<set{ Key Pressed }to( A
<wait until><< <not> <key[ A ]pressed?> >>
<set{ Key Pressed }to( None
... Make a whole lot more scripts like this for different keys ...
<when[ Z ]key pressed>
<set{ Key Pressed }to( Z
<wait until><< <not> <key[ Z ]pressed?> >>
<set{ Key Pressed }to( None
[/blocks]
It will only work for one key at a time...but maybe that is sufficient for what you want?
I think, that may 'create' too much (over 10MB) of the project in massive projects. Also, it may take too much time to create all those scripts.
Offline