I dowloaded the macro software "WinTask" from http://www.wintask.com/download.htm to write a macro that wrote 1 million $ signs in a text file, for one of my curiosities.
Having done that, I set myself a challenge I seem to be unable to complete.
I wanted to write a macro that would take a user defined string, and write it in notepad a user defined number of times, to numbers up towards 1 million or so.
well, I successfully wrote that script, but not to my satisfaction. It could easily write the string 511 time for example very quickly, but a million would take forever!
oddly enough, because I've programmed it to selec all, copy, and paste, 500000 or so doesn't take too long if it's a good number (like 1024 or 2048 for example)
I've been trying to work my way around how to write in the missing strings quickly, in such a way that the script could be used on any computer, but not having much success. I've been thinking and trying things now for a day or two, but can't find the answer.
I'm hoping that someone here might be interested and take a look at it.
I've uploaded both the first version of the script (the one that takes forever for large numbers), and the incomplete second version in a zip file.
Downloading the 30 day free trial of wintask may help as opening the source in wintask will display it with colour coding and allow you to compile and run it for testing.
I would be much obliged if someone could help out with this little puzzle. It's driving me insane. There must be something simple I'm not thinking of.
Having done that, I set myself a challenge I seem to be unable to complete.
I wanted to write a macro that would take a user defined string, and write it in notepad a user defined number of times, to numbers up towards 1 million or so.
well, I successfully wrote that script, but not to my satisfaction. It could easily write the string 511 time for example very quickly, but a million would take forever!
oddly enough, because I've programmed it to selec all, copy, and paste, 500000 or so doesn't take too long if it's a good number (like 1024 or 2048 for example)
I've been trying to work my way around how to write in the missing strings quickly, in such a way that the script could be used on any computer, but not having much success. I've been thinking and trying things now for a day or two, but can't find the answer.
I'm hoping that someone here might be interested and take a look at it.
I've uploaded both the first version of the script (the one that takes forever for large numbers), and the incomplete second version in a zip file.
Downloading the 30 day free trial of wintask may help as opening the source in wintask will display it with colour coding and allow you to compile and run it for testing.
I would be much obliged if someone could help out with this little puzzle. It's driving me insane. There must be something simple I'm not thinking of.