mcnmihail Posted January 24, 2009 Share Posted January 24, 2009 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 Link to comment Share on other sites More sharing options...
Kip Posted January 24, 2009 Share Posted January 24, 2009 I'm missing one thing.. Oh yeah: your question. MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
mcnmihail Posted January 24, 2009 Author Share Posted January 24, 2009 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 Link to comment Share on other sites More sharing options...
mcnmihail Posted January 24, 2009 Author Share Posted January 24, 2009 I need someone to tell me what I do wrong Link to comment Share on other sites More sharing options...
mcnmihail Posted January 24, 2009 Author Share Posted January 24, 2009 (edited) 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 January 24, 2009 by mcnmihail Link to comment Share on other sites More sharing options...
trancexx Posted January 25, 2009 Share Posted January 25, 2009 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now