Avoid sleep

Mac OSX specific forum
infratec
Always Here
Always Here
Posts: 6874
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Avoid sleep

Post 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
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3870
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Avoid sleep

Post 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
Windows (x64)
Raspberry Pi OS (Arm64)
User avatar
Danilo
Addict
Addict
Posts: 3037
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: Avoid sleep

Post by Danilo »

Search this board for "app nap".
Post Reply