Uploading every file in a folder

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
foguetes
Posts: 19
Joined: 19 Oct 2018, 04:58

Uploading every file in a folder

23 Oct 2019, 07:31

I'm trying to create a script that uploads all the files within one folder to Azure Video Indexer: https www.videoindexer.ai / Broken Link for safety

I have written this script that promps a window where I can choose a folder.
Then the webpage is opened in chrome and the upload button is pressed. Finally it opens the file selector dialog. This is repeated the same amount of times as the amount of files in the folder.
However, I'm getting stuck at the part where the script should input each file path in the dialog window.

Here's what I got for now:

Code: Select all

#+F1::

FileSelectFolder, WhichFolder  ;  Pick a folder.
Loop, Files, %WhichFolder%\*.*
{

Run, chrome.exe "https www.videoindexer.ai "  Broken Link for safety
sleep, 3000
Send {Tab 7}
Send {Enter}
sleep, 500
Send {Tab 5}
Send {Enter}
sleep, 100
SendInput, %A_LoopFileFullPath%
Send {Enter}

}
return
Kobaltauge
Posts: 264
Joined: 09 Mar 2019, 01:52
Location: Germany
Contact:

Re: Uploading every file in a folder

24 Oct 2019, 00:42

The service has an API. There is a possibility to upload files from a hard drive.
https://api-portal.videoindexer.ai/docs/services/operations/operations/Upload-video?
On this site there are a few code examples in different languages. Probably you can "translate" them to AHK or get a proper idea.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Beorn, Bing [Bot], BPet, peter_ahk, whoops, Yincognito and 229 guests