Jump to content

Change all Identical Lines?


Devy
 Share

Recommended Posts

I'm curious if there is a way to change all of my Sleep(300) to Sleep(200), without having to individually edit each one.  Long story short I've used sleep 300 a lot and it could be faster if I use 200, but I've used it a lot, and it would take forever to edit each one by hand...

 

I just ask because I notice when I highlight the sleep(300) it also colors all lines with the same text.  Is there a way to use that functionality to change all of them at once?

Link to comment
Share on other sites

you can do that with Sublime Text but in the AutoIt editor it's just Ctrl-H, right? then you can specify what to what.

in the future you can declare a constant for the timeout and use that instead of hard coding Sleep(200) all over the place. If you want to mass change, change it in one spot the constant declaration.

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Link to comment
Share on other sites

I use ISN AutoIt Studio and can do it with a Find (Ctrl+F).

But I agree with Earthshine. Make your delays constant value and then just change the constant value.

Edited by benched42

Who lied and told you life would EVER be fair?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...