[OT] Quarrels

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Nothing is here about em_ commands (?)
Last edited by Alextp on 2006-11-02, 12:30 UTC, edited 1 time in total.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

Now I see - thanks.
Last edited by Alextp on 2006-11-02, 12:43 UTC, edited 2 times in total.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Sorry, Opera has eaten the last digit, this is the correct thread:
http://www.ghisler.ch/board/viewtopic.php?t=12064

Icfu
This account is for sale
User avatar
StickyNomad
Power Member
Power Member
Posts: 1933
Joined: 2004-01-10, 00:15 UTC
Location: Germany

Post by *StickyNomad »

2icfu
:)

Man, it will take me a bunch of time busting the old starter menu and setting up my brand new main menu using those mighty em_commands. Finally the border between starter- and main menu has been teared down!

I think I'll have a look at Lefteous' command converter, could save some time...
Raymond
Senior Member
Senior Member
Posts: 454
Joined: 2003-02-08, 15:43 UTC

Post by *Raymond »

icfu wrote: And I was wrong with WM_COPYDATA. This one can be used instead for calling user-defined commands, this is an example script:

Code: Select all

; *** Konfig-Start
parameter := "em_copyShortPathsToClipboard"
; *** Konfig-Ende

Send_WM_COPYDATA(parameter)

Send_WM_COPYDATA(ByRef SentParameter)
{
  VarSetCapacity( CopyDataStruct, 12 )
  InsertInteger( Asc( "E" ) + 256 * Asc( "M" ), CopyDataStruct )
  InsertInteger( StrLen( SentParameter ) + 1, CopyDataStruct, 4 )
  InsertInteger( &SentParameter, CopyDataStruct, 8 )
  SendMessage, 0x4A, , &CopyDataStruct, , ahk_class TTOTAL_CMD
}

InsertInteger(pInteger, ByRef pDest, pOffset = 0, pSize = 4)
{
  mask := 0xFF
  Loop %pSize%
  {
    DllCall("RtlFillMemory", UInt, &pDest + pOffset + A_Index - 1, UInt, 1, UChar, (pInteger & mask) >> 8 * (A_Index - 1))
    mask := mask << 8
  }
}
2icfu
It's kind hard for me to understand your code. I only do a little script with AutoIt though. Could you explain a little?

If I didn't get you wrong, this is supposed to call em_xyz in script.
But why bother? em_xyz is defined by some external program and parameter, etc, you know. Why not call the program directly in script.
I guess maybe I missed something.
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

2gbo
Hacker already told ya.
I will certanly not use this feature as I don't like it to be TC specific. If I create aliases for progies, i want to be able to use them as such in entire system, not only TC. I have just one defined now, ie instead iexplore, when I need to open this stupid browser.


About custom commands, I don't share such entusiasm. I don't see that anything improved as you can use only 1 internal command or executables. It doesn't make any sense to me, except for commands with parameters if you want to hard code them.

Now, the thing should be much better if you could specify list of commands to be executed. Also number of commands don't have parameters at all (only few have them). I wait the day to see something like this:

Code: Select all

cm_MyCopyWithPreview
   cm_SelectFiles (*.wav;*.mp3)
   cm_Copy(d:\mp3)
   Winamp d:\mp3
end
Of course, commands I used do not exist now...

This is not hard to do, TC already has mechanisms for this, it just needs new interface to it. This will also remove number of "garbage" commands like cm_UserMenuX, cm_SrcActivateTabX, sm_SrcSortByColX .........

Ghisler can replace about 100 commands with 5 in this manner:

Code: Select all

   cm_UserMenu (X)
   cm_ActivateTAb([Src|Trg], X)
   cm_CustomView([Src|Trg], viewName)

Now, I don't have to tell you that this is no big job at all. He can for instance keep internaly all current commands and write something like

Code: Select all

cm_ActivateTab ( target, X)
 begin
      case (target)
          Src:   Execute( "cmSrcActivateTab" + X)
          Trg:   Execute( "cmTrgActivateTab" + X)
 end

Of course I don't think this should be done this way, and I defeinitely don't think that Ghisler will consider this.


2Raymond
Why not call the program directly in script
Because it doesn't have to be a program but TC internal command, for instace to select something...
Habemus majkam!
Raymond
Senior Member
Senior Member
Posts: 454
Joined: 2003-02-08, 15:43 UTC

Post by *Raymond »

2majkinetor!
I like your idea! Maybe v7 is the very first step towards what you wish. Let's pray. :D
Because it doesn't have to be a program but TC internal command, for instace to select something...
Then why not call TC internal command itself, directly?
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

Then why not call TC internal command itself, directly?
I don't see a point of custom commands too, at current stage.
Habemus majkam!
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

@Raymond:
There's a difference between being able to control TC from INSIDE TC and being able to control it from OUTSIDE TC. With the new interface we can get rid of some dirty tricks like abusing the clipboard to receive some data we need like marked filenames or to read TMyPanelControl to get the active path, etc...

Custom commands and aliases are a very nice addition for me, this means I will probably switch from TAR to TC. Of course, enhancements are always welcome but at least a start has been made.

One year ago things looked much more negative, that's my point of view at least. ;)

Icfu
This account is for sale
Raymond
Senior Member
Senior Member
Posts: 454
Joined: 2003-02-08, 15:43 UTC

Post by *Raymond »

2icfu

I just didn't get what this for when I went through history file.

17.09.06 Added: Send WM_COPYDATA with dwData='E'+256*'M' and lpData pointing to em_xyz internal command (0-terminated) to execute that command. Accepts parameters separated by a space

I thought your code was the explanation of it. So I asked.

Talking about new em_xyz and alias, I like em_xyz. It's more clear, independant and get rid of some nonconsistent trouble before. I'll not dig into alias at present and stick to TAR, which isnot TC related. For example I use TAR as web search bar a lot. When searching during browsing, don't want to bring TC window on top of the browser.
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3378
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

majkinetor ! wrote:BTW, the EditPlus is superb editor. It has no bugs
ROTFL - U just made my day with this nonsense - ROTFL
:twisted:
Hoecker sie sind raus!
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

I don't think this would help. The TC created the file and crashed afterwards. Editor was open at the time.

2 Silvana
Hej girl, stop bothering me. Didn't I f**** you gooood yesterday ? I thought that is only important for a woman. But it appears you are the one of those demanding chiks....

And show some respect to the holy man you b*tch. :twisted:
Habemus majkam!
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

Hej girl, stop bothering me. Didn't I f**** you gooood yesterday ? I thought that is only important for a woman. But it appears you are the one of those demanding chiks....
You all can see now that m is even more stupid than an imbecile CAN be. :mrgreen:
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3378
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

but hopefully turn of by ini and not so ugly.
the button is as ugly as ur pic :twisted:
Hoecker sie sind raus!
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3378
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

majkinetor ! wrote:2 Silvana
Hej girl, stop bothering me. Didn't I f**** you gooood yesterday ? I thought that is only important for a woman. But it appears you are the one of those demanding chiks....
And show some respect to the holy man you b*tch. :twisted:
1st Souch ugly guy as u wouldnt come any cm near me
2nd Respect to a unholy man as u ? never :!:
3rd learn the meaning of repect Babe :D


PS: thx Hacker for Morderation :twisted:
Hoecker sie sind raus!
Post Reply