Jump to content
Sign in to follow this  
mcnmihail

For .. Next or Do ... Until..

Recommended Posts

mcnmihail

Need some help, I have a start background in publisher where I want to change 2 photos then save, after that move to the next 2 photos and save and so on...

I have the folder with photos. and I need to insert Photo 1 and 2 and save, after that photo 3 and 4 and save, after that photo 5 and 6 and save....

WinWaitActive("[CLASS:MSWinPub]", "")

Do

Do

Do

For $i = 1 to 9

;poza1

send("{TAB}")

send("{APPSKEY}")

send("{n}")

send("{f}")

WinWaitActive("Insert Picture")

Send("frame1 (" & $i & ").jpg")

send("{ENTER}")

;Then

;poza 2

For $e = 1 to 9

send("{TAB 6}")

send("{APPSKEY}")

send("{n}")

send("{f}")

WinWaitActive("Insert Picture")

Send("frame2 (" & $e & ").jpg")

;Then

send("{ENTER}")

send('{alt}')

send("{DOWN 6}")

send("{ENTER}")

;salveaza

For $f = 1 to 9

WinWaitActive("Save As")

Send("8 MARTIE" & $f & "")

send("{ENTER}")

Next

Next

Next

Until $i = 9

Until $e = 9

Until $f = 9

Share this post


Link to post
Share on other sites
mcnmihail

I'm missing one thing..

Oh yeah: your question.

It just insert first two photos then the script don`t return and replace photos 3 and 4 , 5 and 6 and so on.. after saving the first replacements the scrpit stops

Share this post


Link to post
Share on other sites
mcnmihail

I try this but the same problem, the script replace just 2 photos then stop

WinWaitActive("[CLASS:MSWinPub]", "")

For $i = 1 to 9

For $e = 1 to 9

For $f = 1 to 9

send("{TAB}")

send("{APPSKEY}")

send("{n}")

send("{f}")

WinWaitActive("Insert Picture")

Send("frame1 (" & $i & ").jpg")

send("{ENTER}")

Send("{SHIFTDOWN}{TAB}")

send("{SHIFTUP}")

send("{APPSKEY}")

send("{n}")

send("{f}")

WinWaitActive("Insert Picture")

Send("frame2 (" & $e & ").jpg")

send("{ENTER}")

send('{alt}')

send("{DOWN 6}")

send("{ENTER}")

WinWaitActive("Save As")

Send("8 MARTIE" & $f & "")

send("{ENTER}")

Next

Next

Next

Edited by mcnmihail

Share this post


Link to post
Share on other sites
trancexx

This shouldn't be to hard but your code has very little to do with your desire and that is confusing me. I don't know, maybe others too.

Can you explain in more words and details what you need (not generally). Just words, no code.


♡♡♡

.

eMyvnE

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.