ForteGSOmega Posted December 3, 2005 Share Posted December 3, 2005 Hello there,Well, I compiled a script that rips animations frame by frame off a game. The only problem is the saving/naming of the frames. I.e. it's like this atm:frame 1 rippedsave as "1" > Send("1")frame 2 rippedsave as "2" > Send("2")so onBut this would mean if I wanted 80 frames, I'd have to copy and paste the whole script 80 times, changing the number every time. Is there a way to automate this? I though of something like:A box appears asking me of how many times I want to execute the script. The script then loops the specified amount of times, and the number typed/"Send"ed starts off with 1 and increases by 1 each time the script restarts. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted December 3, 2005 Moderators Share Posted December 3, 2005 Your post is a bit confusing... For $i = 1 to 80 Send($i) Next Is that what your looking for? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
ForteGSOmega Posted December 3, 2005 Author Share Posted December 3, 2005 That's not exactly it; What you wrote writes all numbers from 1 to 80, But I want something that types a number (like 1), repeats my script and types the next number (>2), repeats the script and then types the next number again (>3), s.o. And sorry for the confusing post. Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted December 3, 2005 Share Posted December 3, 2005 (edited) Dim $Move = 0; << whatever your starting point is While 1 $Move = $Move + 1 If $Move = 81 Then ExitLoop send($move) wend thats thanks to uh big and smokein sends 1 then it sends 2 the next time then next time it sends 3 Edited December 3, 2005 by thatsgreat2345 Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted December 3, 2005 Share Posted December 3, 2005 or do u mean it rights 1 1 2 1 2 3 1 2 3 4 ?? Link to comment Share on other sites More sharing options...
ForteGSOmega Posted December 3, 2005 Author Share Posted December 3, 2005 No, it's right as it is. I want the script so save the pictures with numbers as names, so I can make a gif out of them later. If I input what you wrote the numbering does start with 1, but then it goes to 3, 5 s.o. But it's alright, actually, just as long as I know which pic comes after which. Thank you both for your fast answers! 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