New topic: Refreshing sensors information.
<http://forums.realsoftware.com/viewtopic.php?t=46361> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message newyorkpaulie Post subject: Refreshing sensors information.Posted: Thu Dec 27, 2012 10:24 am Joined: Sat Dec 30, 2006 6:52 pm Posts: 113 Location: New York City I have a program I use to change/monitor some of my settings such as screen-off timing, fan-speed, etc.. The button that checks fan-speed (along with some internal temperatures) runs this code: dim sh as shell sh = new shell sh.execute "sensors" if sh.errorCode=0 then editField1.text=sh.result else msgBox "Error: " + str(sh.errorCode) end if How can I get the information displayed refreshed, say every second or so? I know I can keep tapping the button, but I would like to have it as part of the program instead. I tried a For/Next loop without success. Last edited by newyorkpaulie on Thu Dec 27, 2012 11:52 am, edited 1 time in total. Top jakuno Post subject: Re: Refreshing sensors information.Posted: Thu Dec 27, 2012 11:51 am Joined: Fri Aug 31, 2012 3:56 pm Posts: 45 run your code in a timer. http://docs.realsoftware.com/index.php/Timer Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
