My requirement is to get keyspressed when user opens specific URL in chrome. For that I am firstly checking for URL opened in chrome after that I am setting hook using below code
_hookID = SetHook(_proc);
Application.Run();
UnhookWindowsHookEx(_hookID);
it is getting the keys on that URL but after that if i close that URL it is continuously getting the keys, that's what i don't want. It is because I am calling application.run(). How to run the code after application.run()? I think that would be the solution