Devy Posted March 15, 2018 Share Posted March 15, 2018 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 More sharing options...
Earthshine Posted March 15, 2018 Share Posted March 15, 2018 (edited) 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 March 15, 2018 by Earthshine My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
benched42 Posted March 15, 2018 Share Posted March 15, 2018 (edited) 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 March 15, 2018 by benched42 Who lied and told you life would EVER be fair? Link to comment Share on other sites More sharing options...
Devy Posted March 17, 2018 Author Share Posted March 17, 2018 Thanks both of you, I kinda forgot I could do that! Ty I will in the future! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now