This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-01-20 16:10:07

adincia
New Scratcher
Registered: 2011-01-18
Posts: 3

Having scratch run in background?

Would it be possible to have your scratch project run in the background? Like a keylogger for example. I don't care about hiding it in the task manager.

Offline

 

#2 2011-01-20 16:51:34

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Having scratch run in background?

Well yes, a Scratch project can run in the background and continue to perform calculations and such (though it becomes a lot slower). A key logger won't work in the background though because the keyboard is allocated by your operating system to react with the current window only, running Scratch in the background means that it no longer picks up keyboard commands in the same way that what you type does not appear in the google search bar when your internet browser is minimised.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#3 2011-01-20 17:48:59

adincia
New Scratcher
Registered: 2011-01-18
Posts: 3

Re: Having scratch run in background?

Oh, ok thanks!  smile

Offline

 

#4 2011-01-21 11:53:40

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Having scratch run in background?

sparks wrote:

Well yes, a Scratch project can run in the background and continue to perform calculations and such (though it becomes a lot slower). A key logger won't work in the background though because the keyboard is allocated by your operating system to react with the current window only, running Scratch in the background means that it no longer picks up keyboard commands in the same way that what you type does not appear in the google search bar when your internet browser is minimised.

I do believe it depends on how the code is.
If the code is in the form of an event, then it probably won't react because the Windows host process will only send that event if the window has focus. If it uses a general keyboard class inside a continous loop, it would probably sense it!

Offline

 

#5 2011-01-21 12:38:19

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Having scratch run in background?

I don't think so. As I type this I'm running a Scratch project that counts the number of times the space key is pressed using a (forever: if key space pressed then change var by 1) script and the value of var is still 0 by the time I finish typing  sad


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#6 2011-01-21 14:45:47

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Having scratch run in background?

sparks wrote:

I don't think so. As I type this I'm running a Scratch project that counts the number of times the space key is pressed using a (forever: if key space pressed then change var by 1) script and the value of var is still 0 by the time I finish typing  sad

Yes, because Scratch evaluates the key press its own way.
I mean applications in general.

Offline

 

Board footer