Jump to content
UBot Underground

[FREE] Find and replace tool with timer..


Recommended Posts

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.

Link to post
Share on other sites
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...