I would like my program to active when there has been a certain lenghth of time with no keyboard/mouse activity. Is there a better way then hooking the keyboard and mouse?
Posted on 2002-03-10 00:18:05 by Quantum
Modify the loop of your program and then handle/use GetAsyncKeyState function - it can handle specific keyboard and mouse presses. The only problem is you have to handle all the virtual key codes...In your main loop, you must have a routine that checks the time passed since the last keyboard or mouse pressed. When using the GetAsyncKeyState, create a flag that will tell you if a button or moused has been pressed, then inside this routine(that checks time...) determine if this flag has been set or not. If it is, unset it and start checking the time passed... I'm not sure but this is just a suggestion. :)
Posted on 2002-03-10 00:40:31 by stryker
Just an idea.

A small hook like find window and/or execute a tiny screen saver or something on a timer all in a very smooth seq. ASM no power Wasted.
Posted on 2002-03-10 00:46:46 by cmax