View Full Version : Is this possible?
Geeky1
15 Mar 2004, 7:54am
Does a program exist that will let me have F@H start automatically when my laptop is on AC power, but which will close it when it switches to battery power?
a2jfreak
15 Mar 2004, 8:15am
Possible? Yes.
Does it yet exist? Probably in a program-agnostic form, not F@H-specific.
mmonnin
15 Mar 2004, 1:20pm
Try a scheduled task.
shwaip
15 Mar 2004, 4:35pm
It doesn't work on my laptop...I just stop it when i run on batteries
edcentric
15 Mar 2004, 9:32pm
I can't get it to work on my Toshiba, I tried building a profile that would suspend FAH when I went to battery. I guess I need to rtfm and try again.
Gobbles
15 Mar 2004, 9:36pm
get some one to write one up in VB real quick. I should not be that hard. You are onl y checking to see if battery is in use, if it is dont start if not start.
if (battery!=1) { run folding@home }
else { return }
Gobbles
shwaip
15 Mar 2004, 9:37pm
The real advantage of making it a sched. task would be it stops if you unplug the laptop, which it does not.
a2jfreak
15 Mar 2004, 10:07pm
VB sucks. It uses "if/then/endIf" not if/{/} :)
Also, inequality checks are <> IIRC, not !=.
I prefer !=, (since NOT EQUAL makes more sense to me than LESS THAN GREATER THAN) :)
get some one to write one up in VB real quick. I should not be that hard. You are onl y checking to see if battery is in use, if it is dont start if not start.
if (battery!=1) { run folding@home }
else { return }
Gobbles
t1rhino
16 Mar 2004, 2:48pm
Are you running the Graphical or console or console as a service?
Geeky1
16 Mar 2004, 3:53pm
Right now, it's the GUI version.
primesuspect
16 Mar 2004, 3:55pm
The guy who wrote this program would be a hero to the mobile folding community....
t1rhino
16 Mar 2004, 6:21pm
It is easy to do if you are running the console version by simply sending a Ctrl-C to the console window. If you kill the GUI version using a kill process command, it does not kill the core...
As well, the GUI version is that it interprets Alt-F4 as minimize instead of close. If you can determine what (if any) keyboard commands will close the GUI version, then let me know.
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.