Sir i read that, I will surely look to that issue and please accept my extreme gratitude for helping me. Unfortunately/Fortunately i am using Dev-C++ and i will let you know how it goes .. any other ideas i can try.
Regards
BL...
User Profile
Collapse
-
Thank you .. but unfortunately it checks for the key given as input.
which is short GetAsyncKeyStat e( int KEY) it is time consuming to collect all the key codes and put a for or while loop as my program will be messy.
Instead looking for function which returns if any key is pressed ...
Any help will be really good. Also idea to terminate the window application or console through software on timer expiry Thanks a lot ......Leave a comment:
-
Sir,
I see your point, but aren't there so many games and programs written to support windows to 1. To monitor the idle time, 2. To self destruct the application
I am doing pretty simple application and i am seeing a failure as i not able to get this logic working. Tried with half heart to implement with delay() and exit but i have to leave this thought process after i realize that once function it will be executed unless i...Leave a comment:
-
Terminate a user request once it reached timeout (again)
Environment: C, C++, Dev-C++ using WinBGim ( this i can change to any window support flavour).
< Read the place for keyboard interrupts ?? how>
store last interrupt from keyboard.
store current time
while ( ! keyboard interrupt)
{
while ( (current time - stored time) < timeout);
<kill application ?? how to abort window/console application?? SYSTEM(EXIT??)>
...
No activity results to display
Show More
Leave a comment: