Error 47 Permission Denied in IE6
Posted on 2005-03-08
Using Delphi 2005 Pro / Intraweb 7.2 / IE version 6.0.2900.2180 / XP Home SP2
I need to have a button on an Intraweb form that simply brings up the browser search window (i.e. emulates the CTRL-F keystrokes). The following code brings the window up fine but when I try to execute the search I get "Error 47 Permission Denied". I don't get the error when I just hit CTRL-F. I presume this is some IE automation security protection but is there a work around?
keybd_event(VK_CONTROL, 0, 0, 0);
keybd_event(70, 0, 0, 0);
keybd_event(70, 0, KEYEVENTF_KEYUP, 0);
keybd_event(VK_CONTROL, 0, KEYEVENTF_KEYUP, 0);