pallavii Posted August 5, 2019 Share Posted August 5, 2019 I tried my level best but,there is a problem to play a video in full screen mode idle ppt.au3 Link to comment Share on other sites More sharing options...
Developers Jos Posted August 5, 2019 Developers Share Posted August 5, 2019 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 More sharing options...
pallavii Posted August 6, 2019 Author Share Posted August 6, 2019 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 More sharing options...
Xenobiologist Posted August 6, 2019 Share Posted August 6, 2019 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now