FSPlugins : parent window

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
fabiochelly
Power Member
Power Member
Posts: 603
Joined: 2003-02-05, 12:03 UTC
Location: Rambouillet, France

FSPlugins : parent window

Post by *fabiochelly »

Is it possible to be notified in an fsExecute event when a user got to the parent window (click on "..") ?
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
User avatar
André Martin
Senior Member
Senior Member
Posts: 245
Joined: 2003-02-05, 15:46 UTC
Location: Dresden, Germany

Post by *André Martin »

Afaik you are not notified...!
But when the user clicks on [..] then FNC is called.
Just put a fsexecute call in findfirst and it should work - if this was what you wanted and if I got your point...?!?
Browse the web with the HTTP SmartBrowserPlugin
Check your mails with the POP3/SMTP EmailPlugin!
User avatar
fabiochelly
Power Member
Power Member
Posts: 603
Joined: 2003-02-05, 12:03 UTC
Location: Rambouillet, France

Post by *fabiochelly »

Just put a fsexecute call in findfirst and it should work
How can I do that ?
It's possible to call those methods manually ? How ?
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
User avatar
André Martin
Senior Member
Senior Member
Posts: 245
Joined: 2003-02-05, 15:46 UTC
Location: Dresden, Germany

Post by *André Martin »

Just write FsExecute(0, "http://www.test.fr", "open");
User avatar
fabiochelly
Power Member
Power Member
Posts: 603
Joined: 2003-02-05, 12:03 UTC
Location: Rambouillet, France

Post by *fabiochelly »

Thanks. I thought that TC only could call those procedures.
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
User avatar
André Martin
Senior Member
Senior Member
Posts: 245
Joined: 2003-02-05, 15:46 UTC
Location: Dresden, Germany

Post by *André Martin »

No - these are ordinary procedure (the only difference is that you export them => allows TC to call them)...
User avatar
fabiochelly
Power Member
Power Member
Posts: 603
Joined: 2003-02-05, 12:03 UTC
Location: Rambouillet, France

Post by *fabiochelly »

But if I call "findfirst" from my plugin, the TC panel won't be refresh ?
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
User avatar
André Martin
Senior Member
Senior Member
Posts: 245
Joined: 2003-02-05, 15:46 UTC
Location: Dresden, Germany

Post by *André Martin »

Yes - because only when TC calls Findfirst... then the panel will be refreshed...
Btw. it seems to me that you have built an endless loop:
Findfirst calls FSExecute calls Findfirst...
You have to change the structure: When findfirst is called then it can call FsExecute but you should guarantee that FsExecute does not call Findfirst again and that your Findfirst functions returns the right values to TC...
It's a bit complex - I hope you can follow my ideas...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Why not put the code of FsExecuteFile in a separate function, and call this function from both FsExecuteFile and FsFindFirst?
Author of Total Commander
https://www.ghisler.com
Post Reply