Jump to content

Recommended Posts

Posted (edited)
  Reveal hidden contents

First, welcome to the forums! :)

Second, I would suggest installing SciTE from the AutoIt page, it makes writing code and catching errors way easier

Third, here's what I found that doesn't work...

  Reveal hidden contents

 

Edited by seadoggie01
Update code

All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

  Reveal hidden contents
Posted

Here you go. Alt + F4 is a bit potato, but hey, it works...

#include <File.au3>
#Include <Array.au3>
#include <Timers.au3>
#include <Debug.au3>

$path = "D:\CTS ppt"
$FileArray = _FileListToArrayRec($path, '*.jpeg|*.pptx|*.xls|*.xlsx', 1)
;_DebugArrayDisplay($FileArray)

For $i = 1 To $FileArray[0]
    If StringInStr($FileArray[$i], ".jpg") > 0 Then
        $iPID = ShellExecuteWait($path & "\" & $FileArray[$i])
        Sleep(2000)
        Send("!{F4}",0)
    EndIf
Next

 

Posted
  On 7/31/2019 at 12:50 PM, Seminko said:

Here you go. Alt + F4 is a bit potato, but hey, it works...

#include <File.au3>
#Include <Array.au3>
#include <Timers.au3>
#include <Debug.au3>

$path = "D:\CTS ppt"
$FileArray = _FileListToArrayRec($path, '*.jpeg|*.pptx|*.xls|*.xlsx', 1)
;_DebugArrayDisplay($FileArray)

For $i = 1 To $FileArray[0]
    If StringInStr($FileArray[$i], ".jpg") > 0 Then
        $iPID = ShellExecuteWait($path & "\" & $FileArray[$i])
        Sleep(2000)
        Send("!{F4}",0)
    EndIf
Next

 

Expand  

thans a lot its working....☺️

 

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
  • Recently Browsing   0 members

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