| Author |
Message |
Forum: Support Topic: How do I seach and replace text in html doc and save as new |
| ncc1701d |
|
Posted: April 18th, 2012, 9:05 am
|
|
Replies: 11 Views: 42
|
| The dates seem sequencial in my example but in reality they have to be manually put in becuase they are not always perfectly sequencial but tied to random events in the real world. |
|
 |
Forum: Support Topic: How do I seach and replace text in html doc and save as new |
| ncc1701d |
|
Posted: April 18th, 2012, 8:51 am
|
|
Replies: 11 Views: 42
|
| thanks I guess their is no simpler way of writing. Because I have recreate the script daily I was hoping I wouldnt have to rewrite lines of script lines twice . so I guess I will try. FileRead, html, method4.html { StringReplace, newhtml, html, 1-Added-Month-Dayth-Year, Added April 17th 2012, All } ... |
|
 |
Forum: Support Topic: How do I seach and replace text in html doc and save as new |
| ncc1701d |
|
Posted: April 18th, 2012, 8:17 am
|
|
Replies: 11 Views: 42
|
| I understood about the loop so its cool but problem is in this next sample: It is basically the same as my first question but trying to do 2 replacements. Iin practice it skips the first replacement and only does the April 16th replacement. How can I make sure it does both replacements before creati... |
|
 |
Forum: Support Topic: How do I seach and replace text in html doc and save as new |
| ncc1701d |
|
Posted: April 18th, 2012, 7:41 am
|
|
Replies: 11 Views: 42
|
| your code just hangs and doesnt create a new file. |
|
 |
Forum: Support Topic: How do I seach and replace text in html doc and save as new |
| ncc1701d |
|
Posted: April 18th, 2012, 7:16 am
|
|
Replies: 11 Views: 42
|
| I want to search within an html document called method4.html and find all instances of the word "Added" and replace it with word "dog" and then resave as a newfile.html Why is what I have not working? FileRead, html, method4.html Loop { StringReplace, NewStr, OldStr, Added, dog, ... |
|
 |
Forum: Support Topic: search and replace problem. Requesting help. |
| ncc1701d |
|
Posted: January 17th, 2012, 10:04 pm
|
|
Replies: 6 Views: 125
|
| I have 237 html files 2kb each so its 254 kilobytes total in that directory. If that is what you want. Mr Guest, Goal in case their was doubt. Replace "Name01" in changme.html to code in file Name01.html in other directory Replace "Name02" in changme.html to code in file Name02.h... |
|
 |
Forum: Support Topic: search and replace problem. Requesting help. |
| ncc1701d |
|
Posted: January 17th, 2012, 8:06 pm
|
|
Replies: 6 Views: 125
|
| I have not tryed what your showing me yet but just a quick question. Given what you are showing me will that do it for name001 AND name002 name003 and the rest or only the name001? I am not a programmer. Just wondering how your code actually knows to replace content of Name002.html and then next nam... |
|
 |
Forum: Support Topic: search and replace problem. Requesting help. |
| ncc1701d |
|
Posted: January 17th, 2012, 7:32 pm
|
|
Replies: 6 Views: 125
|
| Looking for help. I have in one dictory an html document named changeme.html that within it has words in it. Specifically Name001, Name002, Name03 etc all the way up to Name237. I then have in another directory a bunch of text/html files named Name001.html, Name002.html, Name03.html etc up to Name23... |
|
 |
Forum: Support Topic: looking for ideas on how to solve this problem |
| ncc1701d |
|
Posted: December 2nd, 2011, 5:47 am
|
|
Replies: 1 Views: 84
|
| Hi, I am looking for ideas on how to solve this problem. I want to search folder for names of text files which are listed alphabetically. Select one at a time alphabetically and select all content within that text file. then go to Final.txt and replace "1name", "2name", 3name etc... |
|
 |
Forum: Support Topic: Should I do this in autohotkey? How might I aproach this? |
| ncc1701d |
|
Posted: November 12th, 2011, 9:28 pm
|
|
Replies: 25 Views: 536
|
| Jpjazzy with regards to your script do you know how to make it so the title shows ";Title" instead of just title 23 ,title 24 etc? When i try adding ; the script thinks its a remark. title 23 description 5 7 8 end title 24 description 15 17 18 end what is desired is below ;title 23 descrip... |
|
 |
Forum: Support Topic: Should I do this in autohotkey? How might I aproach this? |
| ncc1701d |
|
Posted: November 11th, 2011, 8:05 am
|
|
Replies: 25 Views: 536
|
| ok I think I know what was wrong. in your FileAppend, ; Write the text to the file ( `r`n`r`ntitle %Title%`r`n description %Des1% %Des2% %Des3%`r`n end ), file.txt you didnt need the `n at the end of those 2 lines in the middle. I think you were doing a carriage return and and new line causing a dou... |
|
 |
Forum: Support Topic: Should I do this in autohotkey? How might I aproach this? |
| ncc1701d |
|
Posted: November 11th, 2011, 7:46 am
|
|
Replies: 25 Views: 536
|
| If I can back up a moment. Maybe you can look at this. If I run your code on my vista. Under vista wordpad the generated text file looks like this only the top is single spaced between lines. title 23 description 5 7 8 end title 24 description 15 17 18 end title 25 description 25 27 28 end title 26 ... |
|
 |
Forum: Support Topic: Should I do this in autohotkey? How might I aproach this? |
| ncc1701d |
|
Posted: November 11th, 2011, 7:01 am
|
|
Replies: 25 Views: 536
|
| if you run the exact script you posted for me in autohotkey basic under xp64bit I get title 23 description 5 7 8 end title 24(then 3 boxes show up) description 15 17 18(then 3 boxes show up) end title 25(then 3 boxes show up) description 25 27 28(then 3 boxes show up) end and the rest in the same pa... |
|
 |
Forum: Support Topic: Should I do this in autohotkey? How might I aproach this? |
| ncc1701d |
|
Posted: November 11th, 2011, 6:36 am
|
|
Replies: 25 Views: 536
|
| I am using your script but having issues where when i look at the generated text file in xp64 notepad it creates these font boxes as oppossed to vista notepad which I was using and where it looked fine up until now. Now it shows some unknown font size boxes possible having to do with file encoding o... |
|
 |
Forum: Support Topic: Should I do this in autohotkey? How might I aproach this? |
| ncc1701d |
|
Posted: November 11th, 2011, 6:13 am
|
|
Replies: 25 Views: 536
|
jpjazzy
which version of autohotkey did you use for your script? |
|
 |
| Sort by: |