Spoiler
Code: Select all
ClipboardSave:=ClipboardAll
Clipboard:=""
;SendMessage starting with "WM_User+50" WM_User=0x0400=1024+50 == 0x0432=1074
;( to send a number)
; WM_USER = 1024
; WM_USER+50 = 1074
; WM_USER+51 = 1075 == 0x0433
;cm_CopyFullNamesToClip=2018;Copy names with full path
;cm_ClearAll=524;Unselect all (files+folders)
SendMessage 1075, 2018, 0, , ahk_class TTOTAL_CMD
ClipWait ; Wait for the clipboard to contain text.
Files:=Clipboard
Clipboard:=ClipboardSave
ClipboardSave:=""
; PostMessage 1075, 524, 0, , ahk_class TTOTAL_CMD
don't affect the code - but it was clearer "to read" these lines all the time.
Well, the point of the fix: Send not Post and ClipWait not Sleep