Jump to content

why my filename is not exactly the same when i send it ??


philgood
 Share

Recommended Posts

hello everybody,

i'm new in autoit and , probably, you 'll find my problem "easy to solve"... (i hope)

i need to use autoit for extract sound of a lot of  .mov files.

and i have a problem just to open the files (all, script and .mov are in  the same directory )

all my files are named "001.mov", "002.mov", etc...

but when i send the name , it's write "01.mov", "02.mov"

... why ???

if someone can explain me...

thanks

 

my script:

#include <Constants.au3>
#include <Array.au3>

Opt("WinTitleMatchMode", 2)

Local $hSearch = FileFindFirstFile("*.mov")

 If $hSearch = -1 Then
        MsgBox($MB_SYSTEMMODAL, "", "Error: No files/directories matched the search pattern.")
        exit
 EndIf

Local $sFileName = "", $iResult = 0
 While 1
        $sFileName = FileFindNextFile($hSearch)
        If @error Then ExitLoop

        Run("C:\Program Files (x86)\QuickTime\QuickTimePlayer.exe")
        WinWaitActive("[TITLE:Apple QuickTime]")
        Send("^o")
        send($sFileName , 1)
        Send("{ENTER}")
    WEnd
    FileClose($hSearch)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...