Page 1 of 1

Suggest some more internal commands for scripting

Posted: 2008-11-22, 01:20 UTC
by Stefan2
Hi Mr. Ghisler,
to make scripting TC easier i want to suggest some more internal commands:


cm_SelectFolder(Name, "name")

cm_SelectFile(name, "file.ext")
cm_SelectFile(CDate, newest)
cm_SelectFile(CDate, oldest)
cm_SelectFile(MDate, "21.11.2008")
cm_SelectFile(Size, biggest)
cm_SelectFile(Size, smallest)
cm_SelectFile(Size, < 1)
cm_SelectFile(List, first) like cm_GoToFirstFile
cm_SelectFile(List, last)

cm_FocusToSelection ;set cursor (focus) to [last?] selected file/folder

---

So one could simple use
PostMessage, 1075, cm_SelectFile(Name, varFileName), , , ahk_class TTOTAL_CMD
PostMessage, 1075, cm_FocusToSelection, , , ahk_class TTOTAL_CMD
PostMessage, 1075, cm_RenameOnly, , , ahk_class TTOTAL_CMD


---
Is this is possible?
Are there more needs?

I have seen there are workarounds, but this should be easier.

Re: Suggest some more internal commands for scripting

Posted: 2008-11-22, 07:09 UTC
by m^2
Stefan2 wrote:PostMessage, 1075, cm_SelectFile(Name, varFileName), , , ahk_class TTOTAL_CMD
Is this is possible?
This one is not. But it can be done like changing directory, it's a bit more complicated, but doable.

support++;

Posted: 2008-11-24, 17:24 UTC
by ghisler(Author)
Sounds like a good idea, I will consider it.

Posted: 2008-11-26, 15:35 UTC
by pdavit
ghisler(Author) wrote:Sounds like a good idea, I will consider it.
If this is implemented, I would suggest Christian a new category for scripting-related commands and not embed the proposed ones and any possible future ones in the present categories.

This will make them accessible easier and more productively.

Posted: 2008-11-28, 12:21 UTC
by Vochomurka
Sometimes at scripting it is required to get 1) custom columns; 2) sorting method. I didn't find any description of possible messages to be sent to THeaderClick control. Mr Ghisler, could you upload somewhere programming methods to interact with this control. I suppose the custom columns (after being retrieved from ini file) can be processed the same way, right?