I am trying to build a peice of software to survey how a user interacts with a pc. I need to record keystroke latencies and durations etc.
I have got the event handler working and I was wanting to create a seperate class for each parameter such as keystroke latency etc. I got it working on the main thread but when I ran latency and duration together they interfiered with each other. Im guessing I am going to have to run them on sperate threads only problem is that everything I have tried doesnt work. I have tried putting the event handlers in the class and in the main but when running in threads the events dont seem to fire.
Here is what I have got so far
MouseClickDurat ion mcd = new MouseClickDurat ion();
HookManager.Mou sePressed += mcd.Pressed;
HookManager.Mou seReleased += mcd.Released;
How do I declare this to run in a seperate thread?
Many Thanks
Chris
I have got the event handler working and I was wanting to create a seperate class for each parameter such as keystroke latency etc. I got it working on the main thread but when I ran latency and duration together they interfiered with each other. Im guessing I am going to have to run them on sperate threads only problem is that everything I have tried doesnt work. I have tried putting the event handlers in the class and in the main but when running in threads the events dont seem to fire.
Here is what I have got so far
MouseClickDurat ion mcd = new MouseClickDurat ion();
HookManager.Mou sePressed += mcd.Pressed;
HookManager.Mou seReleased += mcd.Released;
How do I declare this to run in a seperate thread?
Many Thanks
Chris
Comment