[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
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

BTW, please, call me either X or XPEHOPE3KA at this forum ;););)
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

"X" is Ok for you? Ok.
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

I read somewhere that majkinetor knows about 10+ prog-g languages...
I was uisng 20+ for some time in previous years. Including Prolog :mrgreen:

Currently working in only 5,6
PS Is Prolog useful? I didn't study it when I was a student.
Not very useful for ordinary things. Very useful if you want to understand the recursion as it is the basic bulding block for every operation. Pretty good if you want to lern Lisp later witch has similar logic and is sometimes used today for special purpose languages - for instance Nyquist, DSP programming language based on Lisp (and so Prolog)
"X" is Ok for you? Ok.
funduk?
Oh, your alter ego ? Splited personalitiy... I see.
That may explain your sudden mood changes
Habemus majkam!
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

2 ALex

I downloaded TC7 beta. Good to know that Remove Splash Screen.ahk still works :mrgreen:

For one thing I can say "finally" - Choose command. Can't beleve we had to wait years for this little window ...

Also MRT upgrade is nice... Side effect is that I can experiment with files and have some kind of backup as previously you had only Undo of last step. I still think that MRT Interface is far from practical...

Interface of TC doesn't exicte me much as WindowBlinds fix it much better :)

This is most interesting for me:

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
Habemus majkam!
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

"finally" - Choose command.
Hmm, where is it?
Also MRT upgrade is nice...
I didn't use MRT ever :)
This is most interesting for me:
17.09.06 Added: Send WM_COPYDATA with dwData='E'+256*'M'
We already have EM_DISPLAYBAND command for this - isn't it enought?
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

Hmm, where is it?
Configuration -> Misc: button with the loop
I didn't use MRT ever
Its not that u don't have possibilities as it is impossible. The fact is that you are not aware of what it can do for you. Its like one colegue here that doesn't use arrays in prog lang. He said that he don't need it. I say, when you use it enough, you will need it.

We already have EM_DISPLAYBAND command for this - isn't it enought?
What is that ?
ICFU told me that using WM_COPYDATA we will be able to get the list of all files without using clipboard and things like that. AFAIK you can't do that in pre 7 versions.
Habemus majkam!
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

15.09.06 Added: Support for accessibility tools (e.g. for blind users) to main lists+separate tree+sync+CD-Tree, allows to retrieve current line via LB_GETTEXT
So, afterwards it needs to be parsed, I don't have enough info about that one till now.

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_command"
; *** 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
  }
}
We already have EM_DISPLAYBAND command for this - isn't it enought?
No idea about EM_DISPLAYBAND too...

Icfu
Last edited by icfu on 2006-11-05, 01:10 UTC, edited 2 times in total.
This account is for sale
User avatar
gbo
Senior Member
Senior Member
Posts: 329
Joined: 2005-03-31, 19:58 UTC
Location: Lausanne (Switzerland)

Post by *gbo »

Hi majki,
majkinetor ! wrote: Configuration -> Misc: button with the loop
I guess you mean magnifying button (loop <> magnifying) :wink:

in french magnifying = "loupe" I guess in serbian it must sound similar.

BTW do you often use alias with TC ? why is it useful ?
Gil
Licence #17346

90% of coding is debugging. The other 10% is writing bugs.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

What is that ?
You can use EM_DISPLAYBAND message with TC's window to invoke TC's commands: cm_XXXX is passed as message parameter - this is commonly used...
ICFU told me that using WM_COPYDATA we will be able to get the list of all files without using clipboard and things like that.
How to do it?
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

[Deleted]
Last edited by Alextp on 2006-11-02, 12:12 UTC, edited 1 time in total.
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

gbo,
do you often use alias with TC ? why is it useful ?
I can type "k" instead of "kzip archive *.*" and don't need any batches lying around for that.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

@Alextp:
em_xyz are user defined commands, it looks like you are confusing something. Please check my script above. I know, TC 7 is new, we all need some time... ;)

You are talking about sending cm_ commands which is what we are all using for more than a year now in dozens of scripts.

Icfu
This account is for sale
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2icfu
OK. And what EM_ commands are available? Where this em_CopyShortNameToClipboard is from?


PS Is your avatar referring to freeCommander somehow?
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

My avatar? freeCommander? Huh?
That's the mascot of 1. FC Köln, Cologne football club. ;)

Regarding em_commands:
http://www.ghisler.ch/board/viewtopic.php?t=12064 (Link corrected, thanks StickyNomad)

So, you can for example define that one:

em_notepad

Code: Select all

Command: notepad.exe
Parameter: %P%N
If you call em_notepad by the above script, it will start Notepad with the current filename.

I think this is a fuckin' great feature... :mrgreen:

Icfu
Last edited by icfu on 2006-11-02, 12:39 UTC, edited 2 times in total.
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 »

2Alextp
And what EM_ commands are available?
Well, you define them all yourself:

- Open the choose command dialog
- in the section on the left, choose 'usercmd.ini'
- click 'new' and set a name for your command (e.g. em_plugman)
- Enter command (e.g. PluginMan.exe), params etc.
->done.

Now you can use this command just like any cm_ command, in the menu, buttonbar, define an alias and you can start it by typing it's name into the commandline

2icfu
I think this is a fuckin' great feature...
roughly spoken, but totally true! :D

P.S. Are you sure you linked the right thread?
Last edited by StickyNomad on 2006-11-02, 12:31 UTC, edited 2 times in total.
Post Reply