Security 17 Posted June 29, 2012 Report Share Posted June 29, 2012 Made this little thing.. think it may help someone new learn.. so enjoy. ui text box("Search:", #search) ui text box("Replace", #replace) ui text box("File name (bla.txt)", #name) ui open file("load document", #doc) ui stat monitor("Time Running:", "{#hours}:{#minutes}:{#seconds}") set(#startstop, 0, "Global") set(#seconds, 0, "Global") set(#minutes, 0, "Global") set(#hours, 0, "Global") thread { loop while($comparison(#startstop, "=", 0)) { increment(#seconds) if($comparison(#seconds, "=", 60)) { then { set(#seconds, 0, "Global") increment(#minutes) } } if($comparison(#minutes, "=", 60)) { then { set(#minutes, 0, "Global") increment(#hours) } } wait(1) } } set(#doc, $read file(#doc), "Global") set(#doc, $replace(#doc, #search, #replace), "Global") save to file("{$special folder("Desktop")}\\{#name}", #doc) set(#startstop, 1, "Global") If anyone would like to discuss different ways to do this i would love to hear what you got to say.. Thank you. Quote Link to post Share on other sites
KingKong 1 Posted July 21, 2012 Report Share Posted July 21, 2012 Awesome, it worked thanks Quote Link to post Share on other sites
Praney Behl 314 Posted July 21, 2012 Report Share Posted July 21, 2012 Good effort, but I normally just use the replace command found in most text editors. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.