![]() |
|
|
#23 |
|
Sep 2002
23·37 Posts |
im hopeing its not option 1)
perhapse your looking at it the wrong way mabey we could just do something to deterime if the system is idle ( i guess mouse /keyboard activity) and then just start a timmer so you set your screen saver to 5 min past idle and your monitor to 30 min past idle you can just set your prime to 40 min past idle and have it crank up to pority 9 or 10 and then when it detects movement just go back to 1 or what ever setting you put in there. |
|
|
|
|
|
#24 |
|
Sep 2003
Borg HQ, Delta Quadrant
10101111102 Posts |
^^
That could work, we could incorporate a command-line option to set the timer for x minutes. This would have to be changed whenever the screensaver kick-in is changed obviously. We could have it load on start-up then just check for WM_MOUSEMOVE messages. If it gets one, it resets the timer. If not and the timer gets to x minutes, the thread priority of prime95 is changed and the prog resumes checking for the message. If it gets one it changes the priority back to what was before. |
|
|
|
|
|
#25 |
|
Sep 2002
23·37 Posts |
sounds good to me
|
|
|
|
|
|
#26 |
|
Sep 2003
Borg HQ, Delta Quadrant
2×33×13 Posts |
OK, I'll start work on it. May be a while, sounds simple but the coding will be complex and I don't have lots of time to work on things like this nowadays
I'll get back to you ASAP. |
|
|
|
|
|
#27 |
|
Sep 2002
23×37 Posts |
let me know if you need any thing ( i dont think my very limited programing skills will be able to help but i thought i would offer)
|
|
|
|
|
|
#28 |
|
Sep 2003
Borg HQ, Delta Quadrant
2·33·13 Posts |
Do need to know one thing, which operating system is it? Some API calls only work on specific OSes so if you could tell me which OS it is for then it should work first try.
|
|
|
|
|
|
#29 |
|
Sep 2002
23·37 Posts |
the systems i want to start on frist are all xp pro sp1
but i have computers on my team 98 2k linux as well ( they are under my direct control so its not that big a deal) |
|
|
|
|
|
#30 |
|
Aug 2002
Texas
9B16 Posts |
My suggestion for an easy workaround for XP would be to run two instances of Prime95. One that is a service that runs at priority 1 and picks up any stray cycles it can. The second would be a scheduled task that runs when the computer is idle which runs at a higher priority of your choosing. As long as the idle timer is set to something greater than the monitor shut off the second instance will run at high priority while the screen is off and will quit once the computer is actively used by a user. Just my $0.02.
|
|
|
|
|
|
#31 |
|
Sep 2003
Borg HQ, Delta Quadrant
2BE16 Posts |
Crash893,
Sorry about the delay, still haven't begun work. My main desktop (which is my main development PC) is on the fritz and the thing is not making it easy for me to fix it. So I'm stuck on my laptop in the meantime. Hopefully I can get the stinking thing fixed and get back to you.
|
|
|
|
|
|
#32 |
|
Mar 2003
24 Posts |
In the Win32_DesktopMonitor WMI class there is a property named Availability which is probably the one wanted. I say "probably" because I didn't get the VBscript to work when I tried monitoring the Availability event...
http://msdn.microsoft.com/library/de...topmonitor.asp MSDN: Win32_DesktopMonitor class http://msdn.microsoft.com/library/de...ing_events.asp MSDN: Monitoring WMI Events http://www.mvps.org/vbnet/index.html...topmonitor.htm An example written in VB |
|
|
|
|
|
#33 |
|
Sep 2003
Borg HQ, Delta Quadrant
10101111102 Posts |
2 Problems with above solution:
1) Haven't done any COM programming 2) Works only on NT codebase I'd hate to spend tons of time learning COM and then find out it doesn't work anyway... |
|
|
|