Discuss Scratch
- the2000
-
Scratcher
1000+ posts
Battery detector
The OP is obviously talking about real devices if you read some of their other posts. Can you stop nitpicking their word choice and actually give feedback on the suggestion?It states not about real devices, it just says device.This can be easily replicated with variables, however.This suggestion is for detecting the device's actual battery level, not as a simulator :P-snip- :: sensing
Edit: Ayy, king of the page!
Last edited by the2000 (Jan. 21, 2021 16:16:21)
- MAXTR0B0T
-
Scratcher
1 post
Battery detector
It would be nice if I had that blocked because I am creating and scratch OS so it can detect battery percentage like in sensing blocks there are time date it and ears so if they include battery it would be awesome
(current [ Battery %])
- EatNYeet
-
Scratcher
500+ posts
Battery detector
No support, this is very easily abused.
So one would be able to keep others from playing a cloud game if their battery isn't 1%
if <(battery level::sensing reporter) = [1]> then
Run cloud variable game
else
Deny access
end
So one would be able to keep others from playing a cloud game if their battery isn't 1%
- gdpr5b78aa4361827f5c2a08d700
-
Scratcher
1000+ posts
Battery detector
No support, this is very easily abused.But why would anyone do that? People always come up with these “abuses” in the suggestions forums, but they almost always don't make any sense. You could restrict access to a project using many other blocks.if <(battery level::sensing reporter) = [1]> then
Run cloud variable game
else
Deny access
end
So one would be able to keep others from playing a cloud game if their battery isn't 1%
- Ankit_Anmol
-
Scratcher
500+ posts
Battery detector
well, I dont think there is a use xD
If was released, it would be the least used block ever
If was released, it would be the least used block ever
- Scratchfangs
-
Scratcher
1000+ posts
Battery detector
No support, it's not necessary.
Last edited by Scratchfangs (May 7, 2021 11:18:08)
- dertermenter
-
Scratcher
1000+ posts
Battery detector
No support, do not think this is worth it.This is the most constructive post I’ve ever seen, it’s uses the amazing “support convention” and the constructiveness is out of the world. Massive praise on this post, a masterpiece.
-
All scratch blocks need to work on all browsers - and I’m sure not all browsers have battery detection. Scratch blocks should also be able to be used in a lot of different situations - I can only see 1 with this block, meaning it wouldn’t benefit the majority.
- Quantum-Cat
-
Scratcher
1000+ posts
Battery detector
No support. There is only one usage I can think of, and other than that, it just isn't very useful.
No support, this is very easily abused.This isn't a valid reason:if <(battery level::sensing reporter) = [1]> then
Run cloud variable game
else
Deny access
end
So one would be able to keep others from playing a cloud game if their battery isn't 1%
if <(username) = [ExampleScratcher]> then
Run project::grey
else
Deny access::grey
end
- Xolay
-
Scratcher
1000+ posts
Battery detector
No support, people could do this:
when green flag clickedWich would make the project run when the battery is about to end.
if <(battery::sensing) = (1)> then
...
else
stop [all v]
end
- AlfabetonsOfficial
-
Scratcher
100+ posts
Battery detector
No support.
1. Nobody would use this.
2, Not all devices have batteries. (My computer doesn't, it's plugged in)
3. JavaScript and all programming languages are unable to check your battery.
4. This could be used for bullying.
1. Nobody would use this.
2, Not all devices have batteries. (My computer doesn't, it's plugged in)
3. JavaScript and all programming languages are unable to check your battery.
4. This could be used for bullying.
- Xolay
-
Scratcher
1000+ posts
Battery detector
No support.How exactly?
4. This could be used for bullying.
- han614698
-
Scratcher
1000+ posts
Battery detector
Stop coming up with ways this could be abused…
This would work the same
This would work the same
if <(username) = [han614698]> then
…
else
stop [all v]
end
- Chiroyce
-
Scratcher
1000+ posts
Battery detector
You can't do this, JavaScript cannot detect how much battery you have left!
This suggestion is like saying “Make a electricity generator extension for scratch ” when it is clearly not possible.
Absolutely no support since this is impossible lol
This suggestion is like saying “Make a electricity generator extension for scratch ” when it is clearly not possible.
Absolutely no support since this is impossible lol
- hello_smile
-
Scratcher
1000+ posts
Battery detector
You can't do this, JavaScript cannot detect how much battery you have left!There is a Chromium API.
This suggestion is like saying “Make a electricity generator extension for scratch ” when it is clearly not possible.
Absolutely no support since this is impossible lol
- gdpr5b78aa4361827f5c2a08d700
-
Scratcher
1000+ posts
Battery detector
There is a Chromium API.but it's not a web standard.
- hello_smile
-
Scratcher
1000+ posts
Battery detector
We can make it one. Remember gpl/chromium ? We just need to force Mozilla and Apple.There is a Chromium API.but it's not a web standard.
- dhuls
-
Scratcher
1000+ posts
Battery detector
Scratch also officially supports Safari and Firefox (and also Edge but that's Chromium based), not just Chrome. The ST isn't gonna join Google's side in monopolizing the web by using their proprietary APIs.You can't do this, JavaScript cannot detect how much battery you have left!There is a Chromium API.
This suggestion is like saying “Make a electricity generator extension for scratch ” when it is clearly not possible.
Absolutely no support since this is impossible lol
- Chiroyce
-
Scratcher
1000+ posts
Battery detector
We can make it one. Remember gpl/chromium ? We just need to force Mozilla and Apple.Sure, you can do it

Last edited by Chiroyce (Aug. 28, 2021 07:22:29)
- dhuls
-
Scratcher
1000+ posts
Battery detector
yeah, that farceWe can make it one. Remember gpl/chromium ? We just need to force Mozilla and Apple.There is a Chromium API.but it's not a web standard.

That went as successfully as tDuke Nukem Forever.
Anyways, yeah, keep trying, It takes a lot of effort to get banned from a GitHub repository.
Last edited by dhuls (Aug. 28, 2021 07:26:39)













