I need to know how I can do the following:
*)Capture hot key with specific programs (for example, if the current active window is internet explorer, F1 key will be captured to my program (running in the background), but if the current active window is others, F1 key will function normally).
*)If the current window is a browser, how can I send an url to it and force it go there? (in the current browser window, not open a new one).
It's hard for me to figure out myself, so your help is very useful to me.
Thanks in advance!