Thanks Stef, this app is just a quick hack but I already can stop the wifi from my phone and I feel like I have new negociations superpowers...
Thanks Hernán ! That's a perfect fit :) On Thu, Sep 14, 2017 at 9:24 PM Hernán Morales Durand < hernan.mora...@gmail.com> wrote: > http://www.smalltalkhub.com/#!/~TorstenBergmann/Scheduler > > Cheers, > > Hernán > > 2017-09-13 17:36 GMT-03:00 Daniel BLANC <daniel.bl...@gmail.com>: > > Hi All, > > > > I'm a very beginner with smalltalk. I am building a small seaside app for > > controlling wifi access of my teenagers kids. In this app I need to > start or > > stop the wifi acces at a given time. > > For the moment I'm doing it with an infinite loop in a process, with this > > code: > > > > WifiController >> startScheduler > > ^ SchedulerProcess > > ifNil: [ SchedulerProcess := [ [ true ] > > whileTrue: [ self schedulerApplyAutoStartStopRules. > > 56 seconds wait ] ] forkNamed: 'DanWifiManagerScheduler' ] > > > > > > I'm wondering if there is a way to do this without this infinite loop ? > May > > be there is a class in the standard pharo image that can execute a code > > block at a given time ? > > > > Thanks, > > Daniel > >