Author |
Topic: Laptop Charge (Read 716 times) |
|
JB91
New Member
member is offline


Gender: 
Posts: 47
|
 |
Laptop Charge
« Thread started on: Apr 2nd, 2011, 11:52am » |
|
I wasn't sure which category to put this in, but how would you be able to get the current level of charge on a laptop?
Josh.
|
|
Logged
|
|
|
|
JB91
New Member
member is offline


Gender: 
Posts: 47
|
 |
Re: Laptop Charge
« Reply #2 on: Apr 3rd, 2011, 09:28am » |
|
Can you provide an example program, because whenevre I do it, it seems to fail...
|
|
Logged
|
|
|
|
admin
Administrator
member is offline


Posts: 1145
|
 |
Re: Laptop Charge
« Reply #3 on: Apr 3rd, 2011, 2:23pm » |
|
on Apr 3rd, 2011, 09:28am, JB91 wrote:Can you provide an example program, because whenevre I do it, it seems to fail... |
|
I can't see anything particularly difficult that might be causing your problem; it appears to be a straightforward API to use. Do make sure you adhere to the MSDN documentation in every detail.
The only pitfall I can see which might possibly trip you up is that the Spare1[4] in the SYSTEM_BATTERY_STATE structure must be converted to Spare1%(3) in BBC BASIC, because the suffix is the maximum value of the subscript not the number of elements.
If you're still having problems, post the code which is failing.
|
|
Logged
|
|
|
|
JB91
New Member
member is offline


Gender: 
Posts: 47
|
 |
Re: Laptop Charge
« Reply #4 on: Apr 3rd, 2011, 2:34pm » |
|
It works now! Thanks!
|
|
Logged
|
|
|
|
|