thanhnien

I'm developing IE toolbar extension . I use BandObjectLib for .NET programming . Now , I have a problem . I don't know how to monitor immediately after users entering a certain address . This means that after users press ENTER key into IE's Address Bar , I can know the address typed by users before . If anyone knows where having this problem-related articles , please give me addresses . Thanks before for your help !


Re: Internet Explorer Extension Development Monitor ENTER key on IE's Address Bar

IECUSTOMIZER

Hi,

What about when a user clicks a link in a page.

The BeforeNavigate event fires when a user clicks a link, enters a new address and presses enter or refreshes the page.

Regards.






Re: Internet Explorer Extension Development Monitor ENTER key on IE's Address Bar

thanhnien

Thanks for your reply . But now , I just care about what users enter into IE's Address Bar . How can my toolbar catch Enter key

My scenario : My toolbar is an extension on IE . Users enter address into IE's Address Bar . My toolbar catch the Enter Key and check the address users typed . My problem is how can I know when users enter ENTER key .




Re: Internet Explorer Extension Development Monitor ENTER key on IE's Address Bar

Adrian Dorache

You could try to install a WH_GETMESSAGE message hook using one of the Win32 API functions: SetWindowsHook or SetWindowsHookEx. On hook callback procedure you catch all WM_KEYDOWN messages, so you need to filter only VK_RETURN keys. One last step is to process VK_RETURN keys only on adress bar edit control.

A quick look with Microsoft Spy shows that the "Edit" window is inside a "Address Band Root" window (on IE7).

Having the edit window you're interested in, GetWindowText will give you its content.