We help IT Professionals succeed at work.

Turn on/off IE Popup blocker

SHAHEEN_AKHTAR
on
413 Views
Last Modified: 2013-11-23
Hello all,
I want to enable/disable IE's built-in popup blocker through my delphi program and get the count of blocked items. Please provide me some way out. Thanks a lot.
Comment
Watch Question

All-around developer
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks Eddie for your Tip. The following is the delphi code to execute this:
procedure TBandForm.BlockPop(const YesNo : boolean);
const
  PPBlk =
    'Software\Microsoft\Internet Explorer\New Windows\';
  SubKey = 'Explorer\';
  YesNo10 : array[False .. True] of Word = (0, 1);
var mylist : TStrings;
begin
  with TRegistry.Create do
  try
    RootKey:=HKEY_CURRENT_USER;
    if OpenKey(PPBlk, True) then
    begin
      //GetValueNames(myList);
      WriteInteger('PopupMgr',YesNo10[YesNo]);
    end;
    CloseKey;
  finally
    Free;
  end;
end;

Thanks a lot once again
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.