Hi,
I am new to AutoIt and i tried my best to find the solution. i have written the script for selecting a single file and uploading it, which is working fine with ControlSetText("Open","","Edit1","D:\multi\t1.tif")
now i want to select all the file from the folder D:\multi, i have tried the below option but it does not work.
ControlFocus(" Open "," ","Edit1" )
Global $files="",$appendquotes="",$j=2;
IF $cmdLine[0]==1 then
$files=$CmdLine[1]
ElseIf $cmdLine[0] > 1 Then
For $i=1 to $cmdLine[1]
$appendquotes='"' & $CmdLine[$j] & '"';
$files=$files & " " & $appendquotes;
$j=$j+1;
Next
EndIf
ControlSetText("Open","","Edit1","D:\multi")
Send( "^a" )
ControlClick("Open","","Button1")
sorry if the code is wrong, if anyone can help me it will means a lot to me.
Thank you.