05-08-2012 05:34 AM
Its pretty simple. Check this
Good luck
05-08-2012 08:14 AM
@duaa wrote:
i have attached my program
i want the file name to change every time to be image1,image2,..
i dont know how to insert that loop to increment the path name
i have tried many trials and it didnt work
Did you look at the snippet I posted at all? What you tried looks nothing at all like what I posted. Please try again.
Panand's example may work, but it looks a bit more convoluted than it needs to be.
05-08-2012 08:26 AM
@Ravens Fan wrote:
@duaa wrote:
i have attached my program
i want the file name to change every time to be image1,image2,..
i dont know how to insert that loop to increment the path name
i have tried many trials and it didnt work
Did you look at the snippet I posted at all? What you tried looks nothing at all like what I posted. Please try again.
Panand's example may work, but it looks a bit more convoluted than it needs to be.
Yes I have modified the user's code itself atleast he may look at that. I agree that your suggestion is the good way to go with compare with mine and I would go with that. 🙂
05-09-2012 08:48 AM
duaa,
P Anand and Ravens Fan have both provided solutions that work for your application; I'd definitely take a look at what they've coded. 🙂
05-12-2012 03:18 AM
05-12-2012 03:28 PM
Please post the latest copy of your code. It is difficult to understang what you are saying without code to visualize along with it.
05-13-2012 02:39 AM
05-13-2012 02:05 PM
Please review the example I posted on how to build the path to the file. Right now, what you have is wrong. You wind up with a path like "c:\images\.png0.png"
05-14-2012 03:45 PM
Also, right now you Snap outside of your logic, but you save inside the While loop. So this While loop is going to constantly save the same image over and over until you stop it. Then, it'll snap again, and then constantly save the same image over and over. If you want this to work, you need to put the Snap in the same loop as your save, so you have one Snap for each Save.
05-15-2012 07:29 AM
i tried to iclude the snap in my loop and it works
but i need to stop snap images when my case is FALSE
so what should i do ?