?
Solved

Add A Button To Explorer's Toolbar

Posted on 2003-03-13
7
Medium Priority
?
198 Views
Last Modified: 2010-04-04
Hello,
   How can I add a button that launches an application to the WINDOWS 98 explorer's toolbar. And get the parameters of the selected file(s)/folder(s).

Any Idea...

Munim
2Munim@MyRealBox.com
0
Comment
Question by:Munim
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 6

Expert Comment

by:DaFox
ID: 8128637
Hi Munim!

uses
  Registry, ComObj;

procedure CreateExplorerButton(const szAppname, szButtonText, szMenuText, szStatusbarText: string; const IsVisible: boolean; const szHotIcon, szIcon: string);
const
  IEExtensions = 'Software\Microsoft\Internet Explorer\Extensions\';
  DefVisible : array[boolean]of string = ('No','Yes');
var
  reg : TRegistry;
begin
  reg := TRegistry.Create;
  with reg do
    try
      RootKey := HKEY_LOCAL_MACHINE;
      if(OpenKey(IEExtensions + CreateClassId,true)) then
        try
          WriteString('ButtonText',szButtonText);
          WriteString('MenuText',szMenuText);
          WriteString('MenuStatusBar',szStatusbarText);
          WriteString('CLSID','{1FBA04EE-3024-11d2-8F1F-0000F87ABD16}');
          WriteString('Default Visible',DefVisible[IsVisible]);
          WriteString('Exec','"' + szAppname + '"');
          WriteString('HotIcon',szHoticon);
          WriteString('Icon',szIcon);
        finally
          CloseKey;
        end;
    finally
      Free;
    end;
end;

-

procedure TForm1.Button1Click(Sender: TObject);
begin
  CreateExplorerButton(paramstr(0), // application path
    'MyButtontext', // Buttontext
    'MyMenutext', // Text in Menu "Extras"
    'Text in Statusbar', // Text in der Statuszeile
    true, // Button visible?
    ',1', // HotIcon
    ',2'); // Icon
end;

Markus
0
 
LVL 6

Expert Comment

by:DaFox
ID: 8128687
Noooo!

> WINDOWS 98 explorer's toolbar

Sorry, I'm dumb! ;-)

Markus
0
 

Expert Comment

by:modulo
ID: 8189889
Dear expert(s),

A request has been made to close this Q in CS:
http://www.experts-exchange.com/Community_Support/Q_20560116.html

Without a response in 72 hrs, a moderator will finalize this question by:

 - Saving this Q as a PAQ and refunding the points to the questionner

When you agree or disagree, please add a comment here.

Thank you.

modulo

Community Support Moderator
Experts Exchange
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Accepted Solution

by:
modulo earned 0 total points
ID: 8214484
Saving this Q as a PAQ and refunding the points to the questionner

modulo

Community Support Moderator
Experts Exchange
0
 
LVL 6

Expert Comment

by:DaFox
ID: 8214582
Hi Munim, hi modulo.

Closing this q is alright since my answer didn't solve Munim's problem.
But why do I always get an email when the q is already closed? I didn't get an email 3 days ago. That's about the third time this happens to me.

> When you agree or disagree, please add a comment here.

I can't, because I don't look into old qs everyday without getting an email notification! :/

Markus
0
 

Expert Comment

by:modulo
ID: 8221075
Hi Markus,

Strange, haven't noticed a "notif breakdown" lately.
Sometimes a spamm filter might intercept a notif...

But glad you can agree :-)


modulo

Community Support Moderator
Experts Exchange
0
 
LVL 6

Expert Comment

by:DaFox
ID: 8221229
Hi modulo.

> Sometimes a spamm filter might intercept a notif...

How did I get notified that you closed this q? That's what I am trying to say; I always get notified when it's too late... ;-)

Markus
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month8 days, 12 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question