Page 1 of 1

Avoid sleep

Posted: Tue Jan 26, 2016 9:21 am
by infratec
Hi,

one of my programs needs 25 minutes for a serial communication.
I want to avoid that OSX goes into sleep mode.
Up to now the user have to push the mouse. Not the best way :cry:

I found this:
http://stackoverflow.com/questions/1848 ... scriptobjc

Is this still valid?
And how is it possible in PB with Import?

Bernd

Re: Avoid sleep

Posted: Tue Jan 26, 2016 9:56 am
by wilbert
There is a thread about AppNap but I don't know if that's what you are looking for
http://www.purebasic.fr/english/viewtop ... 19&t=58828

Re: Avoid sleep

Posted: Tue Jan 26, 2016 9:56 am
by Danilo
Search this board for "app nap".