^Title^
I need to know.
If it does, can sombody give me a code for a "laptop plugged in?" block?
That will help a lot.
And, if, again, the squeak is able to do the above, can it detect if you are on a laptop or a computer?
Then I'm going to need a "on a laptop?" block, and a "on a computer" block.
Thanks for anyone who can help.
Offline
It's an interesting idea. I think you may have to resort to coupling Scratch with Python using remote sensor connections. I know that someone used a Scratch/Python coupling to program a scratch game that used the tilt-sensors built into the laptop to move a ball around the stage so I think Python should be able to pull the sort of information you need. Squeak, on the other hand, does not strike me as the sort of language that will manage to do what you're asking. I'm no expert though, it may be entirely possible, I suggest looking at the squeak forums and the Python forums and see what you find there!
PandaGuy wrote:
You need a mouse for that, man...
![]()
...and maybe some cheese.
What?
Last edited by sparks (2011-08-26 17:19:33)
Offline
sparks wrote:
It's an interesting idea. I think you may have to resort to coupling Scratch with Python using remote sensor connections. I know that someone used a Scratch/Python coupling to program a scratch game that used the tilt-sensors built into the laptop to move a ball around the stage so I think Python should be able to pull the sort of information you need. Squeak, on the other hand, does not strike me as the sort of language that will manage to do what you're asking. I'm no expert though, it may be entirely possible, I suggest looking at the squeak forums and the Python forums and see what you find there!
Hmm, Python.
I've only head of Python as the thing you have to download to get Blender to work.
Meh, learn somthing new every day.
Thanks, though. That kinda helped. Idk how Python works, but I can learn.
Last edited by owetre18 (2011-08-26 18:16:57)
Offline
Actually, I think you can.
Squeak is able to manage DLLs (proof in the Plugins), so it should be able to manage the query to kernel32.dll (required to use the GetSystemPowerStatus API).
I'm sure it would take a lot of work and isn't really worth it.
Offline
Oh, for those interested in details of the API, here's the link to the documentation
Offline
LS97 wrote:
Actually, I think you can.
Squeak is able to manage DLLs (proof in the Plugins), so it should be able to manage the query to kernel32.dll (required to use the GetSystemPowerStatus API).
I'm sure it would take a lot of work and isn't really worth it.
Thanks for the help.
Offline
sparks wrote:
It's an interesting idea. I think you may have to resort to coupling Scratch with Python using remote sensor connections. I know that someone used a Scratch/Python coupling to program a scratch game that used the tilt-sensors built into the laptop to move a ball around the stage so I think Python should be able to pull the sort of information you need. Squeak, on the other hand, does not strike me as the sort of language that will manage to do what you're asking. I'm no expert though, it may be entirely possible, I suggest looking at the squeak forums and the Python forums and see what you find there!
PandaGuy wrote:
You need a mouse for that, man...
![]()
...and maybe some cheese.What?
*cries* You don't get it! D:

Offline
I don`t think it can, sorry.
PandaGuy wrote:
You need a mouse for that, man...
![]()
...and maybe some cheese.
xD

Offline