08-27-2012, 11:05 AM
Goal:
I have something stored in clipboard and want to save it as a text file using Notepad to paste it.
Then I want to save with a new name each time I store something new in clipboard and paste to a new Notepad.
For this purpose, I thought in naming the files with numbers and using the command for to run the loop until the number of events are finished.
My trial:
Below you find how I was trying to solve the problem:
Problem: When I run the code above I obtain a list of numbers in the output window from QM and only one file is saved with the name i.txt instead of multiple files named as 1.txt, 2.txt, 3.txt and 4.txt as I've wished to obtain.
I wonder if someone could help me to fix this issue.
Thanks in advance
Emerson
I have something stored in clipboard and want to save it as a text file using Notepad to paste it.
Then I want to save with a new name each time I store something new in clipboard and paste to a new Notepad.
For this purpose, I thought in naming the files with numbers and using the command for to run the loop until the number of events are finished.
My trial:
Below you find how I was trying to solve the problem:
int i = 1
int j = 5
for(i 1 j);
out i
run "notepad.exe"
'Cv ;; Ctrl+V
'A{} ;; Alt
'fa ;; F A
'"i" Y ;; File Name and Enter
Problem: When I run the code above I obtain a list of numbers in the output window from QM and only one file is saved with the name i.txt instead of multiple files named as 1.txt, 2.txt, 3.txt and 4.txt as I've wished to obtain.
I wonder if someone could help me to fix this issue.
Thanks in advance
Emerson