Sign in to follow this  
Followers 0
wol

Idiot 2 son of idiot

3 posts in this topic

Hi all

When I learned this...

let x = file i want to work on

for x =1 to n

let x = x+1

next x

Iwant to work on many files in a directory one at a time and pass them to an open dialogue for another program....so far I am banging my head against a wall ...can any one help..THANK YOU :D

Share this post


Link to post
Share on other sites



HI,

have a look at FileFindFirstFile and FileFindNextFile in the help file (maybe beta)

So long,

Mega


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

Share this post


Link to post
Share on other sites

Thanks Mega..thisis what I have so far but it opens 1st file then stops because open file dialogue has changed to the save directory...I think...dont want to use beta till I know if its a bug or me

run("C:\WINDOWS\system32\sndrec32.exe")

For $i = 1 to 9 Step 1

#region --- ScriptWriter generated code Start ---

Opt("WinWaitDelay",100)

Opt("WinTitleMatchMode",4)

Opt("WinDetectHiddenText",1)

Opt("MouseCoordMode",0)

WinWait("Sound - Sound Recorder","Position:")

If Not WinActive("Sound - Sound Recorder","Position:") Then WinActivate("Sound - Sound Recorder","Position:")

WinWaitActive("Sound - Sound Recorder","Position:")

Send("{ALTDOWN}{ALTUP}{DOWN}{DOWN}{ENTER}")

WinWait("Open","Files of &type:")

If Not WinActive("Open","Files of &type:") Then WinActivate("Open","Files of &type:")

WinWaitActive("Open","Files of &type:")

Send("{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{DOWN}{DOWN}{DOWN}{ENTER}{DOWN}{ENTER}")

WinWait("1 a Zero - Sound Recorder","Position:")

If Not WinActive("1 a Zero - Sound Recorder","Position:") Then WinActivate("1 a Zero - Sound Recorder","Position:")

WinWaitActive("1 a Zero - Sound Recorder","Position:")

Send("{TAB}{TAB}{RIGHT}{RIGHT}{RIGHT}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{ALTDOWN}{ALTUP}{RIGHT}{DOWN}

{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{ENTER}")

WinWait("Sound Recorder","All data before the ")

If Not WinActive("Sound Recorder","All data before the ") Then WinActivate("Sound Recorder","All data before the ")

WinWaitActive("Sound Recorder","All data before the ")

Send("{ENTER}")

WinWait("1 a Zero - Sound Recorder","Position:")

If Not WinActive("1 a Zero - Sound Recorder","Position:") Then WinActivate("1 a Zero - Sound Recorder","Position:")

WinWaitActive("1 a Zero - Sound Recorder","Position:")

Send("{ALTDOWN}{ALTUP}{DOWN}{DOWN}{DOWN}{DOWN}{ENTER}")

WinWait("Save As","Save as &type:")

If Not WinActive("Save As","Save as &type:") Then WinActivate("Save As","Save as &type:")

WinWaitActive("Save As","Save as &type:")

Send("{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{DOWN}{ESC}{TAB}{TAB}{TAB}{ENTER}{DOWN}{UP}{ENTER}{ENTER}{TAB}{TA

B}{TAB}{ENTER}")

Next

MsgBox(0,"", "no more wav files")

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  
Followers 0