I am practising Notepad automation. It seems very simple to open and save the file if I am doing it only once in a sequence. Now my concern is, is it possible to open another Notepad in the same Sequence by just copy-pasting the previous activities, or is there a different method for it?
If you want to do something more than once, that typically means a For Each loop. You’d need a list or datatable etc to loop through. For example, if you have a list (of string) containing a bunch of filenames, you could For Each through the list, open Notepad, type something, then save it as the filename. It’ll repeat “for each” of the elements in the list variable.
Typically in this kind of example you’d open Notepad, save the file, then close Notepad…so when it loops again it opens Notepad, saves the file, then closes Notepad.
If you really want two different instances of Notepad open at the same time then you’ll just have to use the Use Application/Browser activity twice, not in a loop.
Thankyou ! I am grateful
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.