cm_GoToFirstEntry=2049;Place cursor on first folder or file
cm_GoToFirstFile=2050;Place cursor on first file in list
in conjunction with
15.05.16 Added: The following commands now accept a numeric parameter
the "numeric parameter" is off by +1.
Like: GoToFirstXXX + number parameter = total count
So for example, a number 4 will go to 5th item:
1 + 4 = 5
GoToFirstXXX = goto item 1
GoToFirstXXX,1 = goto item 2
GoToFirstXXX,2 = goto item 3
GoToFirstXXX,3 = goto item 4
Is that indented or an mistake?
I would prefer a number 4 means goto 4th item.
GoToFirstXXX = goto item 1
GoToFirstXXX,1 = goto item 1 too
GoToFirstXXX,2 = goto item 2
GoToFirstXXX,3 = goto item 3
GoToFirstXXX,4 = goto item 4
What do others think?
--------------------------------------------------------------------- TEST:
You can also send them via script, just put the numbers in lparam.15.05.16 Added: The following commands now accept a numeric parameter in the button bar or start menu:
CM_WAIT
cm_Select=2936;Select file under cursor, go to next
CM_UNSELECT
CM_REVERSE
cm_GoToFirstEntry=2049;Place cursor on first folder or file
cm_GoToFirstFile=2050;Place cursor on first file in list
CM_SWITCHDRIVE
CM_DELETE
CM_LEFTSWITCHTOTHISCUSTOMVIEW
CM_RIGHTSWITCHTOTHISCUSTOMVIEW
CM_SEARCHFORINCURDIR
CM_DIRECTORYHOTLIST
(32/64)
POC:
Code: Select all
#SingleInstance, Force
#IfWinExist, ahk_class TTOTAL_CMD
$#a:: ;press shortcut Win-A
;TC internal commands are sent like that with AHK:
;SendMessage, Msg [, wParam, lParam, Control, WinTitle, WinText, ExcludeTitle, ExcludeText, Timeout]
;TC7 : WM_USER+51 = 1075
;TC9beta1
;15.05.16 Added: The following commands now accept a numeric parameter:
;cm_GoToFirstEntry=2049;Place cursor on first folder or file
;The numeric parameter counts folder and files, off by +1, so number 4 will go to 5th item
;Place cursor on 5th item, folder OR file:
PostMessage,1075,2049,4
;cm_GoToFirstFile=2050;Place cursor on first file in list
;The numeric parameter counts files only, off by +1, so number 3 will go to 4th item
;Place cursor on 4th file:
PostMessage,1075,2050,3
;cm_Select=2936;Select file under cursor, go to next
;Select 3 items:
PostMessage,1075,2936,3
Return