Jump to content
Sign in to follow this  
RuslikYasha

why don't work TAB?

Recommended Posts

How do I do batch processing of all files in that folder (do loop)?

A loop would require to loop for something (here files)

Why complicate things further and arrays?

You trapped yourself.

If I understand correctly: your program creates files, you don't know their name.

Method with _FileListToArray:

1. List the files into an array

2. Loop through files (array) and process them

Br, FireFox.

Edited by FireFox

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

My script (post#5) converts the 1st file from folder"1" to the folder "2", closes the conversion program (hdtv2mpeg), and removes the 1st file from folder"1" to the trash. The script that I already have, but it works for the one file. And I need to make it work as long as all the files in the folder"1" will not be removed. Here arrays are not needed. Need a script (2), which will run my script as needed times, rather than one..

Share this post


Link to post
Share on other sites

Seems so simple that I doubt about the following example

While 1
    ;your script
    If ... Then ExitLoop
WEnd
Consider the exit loop condition which is no more files to convert.

Br, FireFox.

Edited by FireFox

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

It working:

Dim $count = 0

Do
       Run("C:WINDOWSEXPLORER.EXE /n,/e,L:FINAL CUTFCPcapture1")
       WinWaitActive("")
       Send("{RIGHT}{LEFT}{ENTER}")
       WinWaitActive("HDTVtoMPEG2", "",5)
       Send("{TAB 8}{ENTER}")
       WinWaitActive("HDTVtoMPEG2", "",5)
       Send("{ALTDOWN}{F4}{ALTUP}")
       #WinClose ("HDTVtoMPEG2" [, "text"] )
       WinWaitActive("EXPLORER", "",2)
       Send("{DELETE}")
       WinWaitActive("EXPLORER", "",2)
       Send("{SPACE}")
       WinWaitActive("EXPLORER", "",2)
       Send("{CTRLDOWN}w{CTRLUP}")
     
      ;This is the end of the loop, we have to keep count so the 'do' function knows when to stop!
       $count += 1

Until $count = 150

Share this post


Link to post
Share on other sites

RuslikYasha,

 

It working

But "it working" badly. Why not find out how many files you have in the folder first? You can use DirGetSize to do that - then you need only run the loop as many times as needed. :)

M23


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

And if you know when to stop with a number, better use a For statement. "It working better ;)"

Also, please use autoit code tags to post your code :)

Edited by FireFox

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...