longzu / csexwb2

Automatically exported from code.google.com/p/csexwb2
0 stars 0 forks source link

Browser stealing focus? #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
If I have a timer set up to navigate automatically, or if i begin a
navigation and quickly switch apps (I do this a lot if i'm talking on
messenger), the app will pop back up in front of what I am doing.

This is very annoying. Is there some way I can disable this focusing on
navigation?

Original issue reported on code.google.com by murray.l...@gmail.com on 29 Oct 2007 at 8:18

GoogleCodeExporter commented 8 years ago
Webbrowser is known to steal focus from other applications. If using IE7, you 
can 
subscribe to AllowFocusChange event and cancel it. If using IE6, one possible 
way to 
deal with focus issue is to add a check to WndProc of the IEServerWindow 
(internal 
class) to be notified when the webbrowser has gained focus and cancel it.

case WindowsMessages.WM_SETFOCUS:
break;

IEServerWindow class is used to subclass IE server window to intercept certain 
events not easily intercepted using other means.

Original comment by mehr...@gmail.com on 29 Oct 2007 at 8:49

GoogleCodeExporter commented 8 years ago
Thanks, I will try this!

Original comment by murray.l...@gmail.com on 29 Oct 2007 at 10:14

GoogleCodeExporter commented 8 years ago
So far this seems to have done the trick! I hadn't noticed the AllowFocusChange 
event
built into cExWB.

Original comment by murray.l...@gmail.com on 1 Nov 2007 at 2:05