AutoHotkey Community

It is currently May 26th, 2012, 11:31 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: November 18th, 2009, 7:17 pm 
Offline

Joined: February 14th, 2007, 8:01 pm
Posts: 308
I want to loop *.avi and *.vob

Do I need to do two loops (time consuming), or can I just pipe it?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 18th, 2009, 7:25 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
I am not sure, but I think two files loops will be faster than

Code:
Loop *.*
{
   If A_LoopFileExt not in avi,vob
      continue
; Rest of the code

}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 18th, 2009, 7:49 pm 
Offline

Joined: September 13th, 2009, 2:34 pm
Posts: 30
Here's how I do it:

Code:
Loop, *.*, , 1
{
   if (A_LoopFileExt = "avi" or A_LoopFileExt = "mpg" or A_LoopFileExt = "mkv" or A_LoopFileExt = "mp4" or A_LoopFileExt = "dv" or A_LoopFileExt = "mov" or A_LoopFileExt = "wmv" or A_LoopFileExt = "ts")
{
Rest of code
}


Thank 'Guest' for that one, I also had 8 loops running 1 after another, this should get you what you want..?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 18th, 2009, 8:38 pm 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
Code:
exts = avi|mpg|mkv|mp4|dv|mov|wmv|ts
Loop, Parse, exts, |
 Loop, *.%A_LoopField%


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 18th, 2009, 8:41 pm 
Offline

Joined: September 13th, 2009, 2:34 pm
Posts: 30
Wow, nice one, changed mine as well!


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot], Leef_me, Maestr0, Pulover, rbrtryn, Yahoo [Bot] and 64 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group