Jump to content

run video in vlc player in full screen and at end video will close automatically


Recommended Posts

  • Developers

Couple of pointers/remarks:

  • Just post your code between <> in stead of attaching.... much easier for us to see it ... 
  • Strip it to only the needed stuff as there is way too much  dead code in there.
  • Use debug statements to see what is returned.
  • Your mask is wrong in _FileListToArrayRec():
  • Quote
    $sMask

    [optional] Filter for result. Multiple filters must be separated by ";"
    Use "|" to separate 3 possible sets of filters: "Include|Exclude|Exclude_Folders"
        Include = Files/Folders to include (default = "*" [all])
        Exclude = Files/Folders to exclude (default = "" [none])
        Exclude_Folders = only used if $iRecur = 1 AND $iReturn <> 2 to exclude defined folders (default = "" [none])

  • Here is base code to test with:
    #include <File.au3>
    Local $path = "D:\CTS ppt"
    Local $FileArray = _FileListToArrayRec($path, '*.jpeg;*.pptx;*.xls;*.xlsx;*.docx;*.doc', 1)
    For $i = 1 To $FileArray[0]
        ConsoleWrite($FileArray[$i] & @crlf)
        If StringInStr($FileArray[$i], ".mp4") > 0 Then
            $iPID = ShellExecuteWait($path & "\" & $FileArray[$i])
            Sleep(5000)
            Send("{ASC 102}") ;asc code for full screen
            Send("{f}") ;ful screen
        EndIf
    Next

    Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

16 hours ago, Jos said:

Couple of pointers/remarks:

  • Just post your code between <> in stead of attaching.... much easier for us to see it ... 
  •  Strip it to only the needed stuff as there is way too much  dead code in there.
  • Use debug statements to see what is returned.
  • Your mask is wrong in _FileListToArrayRec():
  •  
  • Here is base code to test with:
    #include <File.au3>
    Local $path = "D:\CTS ppt"
    Local $FileArray = _FileListToArrayRec($path, '*.jpeg;*.pptx;*.xls;*.xlsx;*.docx;*.doc', 1)
    For $i = 1 To $FileArray[0]
        ConsoleWrite($FileArray[$i] & @crlf)
        If StringInStr($FileArray[$i], ".mp4") > 0 Then
            $iPID = ShellExecuteWait($path & "\" & $FileArray[$i])
            Sleep(5000)
            Send("{ASC 102}") ;asc code for full screen
            Send("{f}") ;ful screen
        EndIf
    Next

    Jos

ok sure and ThanQ

Link to comment
Share on other sites

Maybe try to use the commandline options, like --fullscreen and --play-and-exit .

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

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...