Because LC can't do two things at once.
Peter M. Brigham
pmbrig at gmail.com
Fri Feb 20 12:11:06 EST 2015
Just out of curiosity, how *would* you do this via shell call or the equivalent on a Windows laptop?
-- Peter
Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig
On Feb 20, 2015, at 11:19 AM, Martin Koob wrote:
> Hi Richard
>
> I noticed in your bug report was for Mac so till that enhancement gets
> implemented you could use this.
>
> function powerStatus
> put shell ("pmset -g batt") into tPowerStatus
> put matchtext(tPowerStatus, "'([^']*)",tPowerSource) into tSuccess
> return tPowerSource
> end powerStatus
>
> Not sure how to do this for other platforms.
>
> I wonder if this could be something that could be made into a widget once
> they are ready?
>
>
>
>
> Richard Gaskin wrote
>>
>> * If we want to max out the CPU by taking full advantage of idle time
>> for background processing, it would be ideal to do this only when
>> powered by wall socket, so laptops running from battery wouldn't be
>> drained unnecessarily by what could be optional workloads. To do that
>> we'd need to be able to know when a computer us running on battery, so I
>> requested a powerStatus function:
>> <http://quality.runrev.com/show_bug.cgi?id=13819>
>>
>> --
>> Richard Gaskin
>> Fourth World Systems
>> Software Design and Development for the Desktop, Mobile, and the Web
>> ____________________________________________________________________
>>
>
>> Ambassador@
>
>> http://www.FourthWorld.com
>>
>> _______________________________________________
>> use-livecode mailing list
>
>> use-livecode at .runrev
>
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>
>
>
> --
> View this message in context: http://runtime-revolution.278305.n4.nabble.com/Because-LC-can-t-do-two-things-at-once-tp4689071p4689108.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list