im able to retrieve only one per time, but i like to know the total size when i select one by one.
thank you for any help!
bye!
Code: Select all
SetTimer, SetTimer45, 666
Return
SetTimer45:
totalSize =
WinActivate, ahk_class EVERYTHING
WinMove, ahk_class EVERYTHING,,-4,-4,666,776
Sleep, 111
Sendinput, ^c
clipwait, 1
;gosub, fileopen
;FileOpen:
; FileSelectFile, thisfile, 3,startdirectory, Select Files, Any File (*.*; *.gabc)
thisfile = %Clipboard%
filegetsize, thisfilesize, %thisfile%
tooltip, %thisfilesize%
;files := %Clipboard%
Loop, parse, Clipboard, `n
{
b := InStr(FileExist(A_LoopField), "D")
Loop, Files, % A_LoopField . (b ? "\*" : ""), FR
totalSize += A_LoopFileSize
}
totalSize += %totalSize%
Gui, 28: Destroy
Gui, 28: -SysMenu +AlwaysOnTop -Caption +ToolWindow
Gui, 28: color, B5FF6C ;
Gui, 28: Font, s26
Gui, 28: Add, Text, x20 y-2,
(
totalSize = %totalSize%
%D%
size = %OutputVar%
tooltip %thisfilesize%
Clipboard %Clipboard%
)
Gui, 28: Show, noactivate x650 y110 ; h42 ; w150
SetTimer, SetTimer45, off
return