Hi,
U can use
SetWindowsHookEx()
UnhookWindowsHookEx()
CallNextHookEx() functions...
And use AddressOf operator for Windows CallBack methods to catch mouse move and keyboard hit etc.
U can set a timer also in Callback function. We have used in one of our project once. Refer MSDn for good examples.
T.Mahata
From: John Walborn <JWalborn@m...>
Date: Mon, 22 Jan 2001 07:41:05 -0700
X-Message-Number: 11
I have two questions, one of which I could use an answer to:
1. How do I set up a hotkey usable from any form in an application?
2. How could I check for activity (mouse moving, key presses) in the
application regardless of what form they are on?
What I am trying to do is set up a "Session Lock" on either a hot key or an
"idle timeout", but I don't know how to make either of those global. I can
set up the timer, but the activity checking and / or global hot key is what
I am having troubles with.
Please help.