RizlaUK Posted July 9, 2019 Posted July 9, 2019 Hi, Can anybody help me with making this code automatically close down error windows as and when the appear please? If WinExist("Error - Arbitrage Crypto Trader v.2.5.0") Then WinClose("Error - Arbitrage Crypto Trader v.2.5.0") Sleep(100) EndIf It works for closing the first error window, but i was hoping to have it on a loop so that it would close the other windows. Regards Rizla
Developers Jos Posted July 9, 2019 Developers Posted July 9, 2019 Just put it in a While...Wend loop and add a Sleep(50) in the loop. Open the helpfile for details. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
RizlaUK Posted July 9, 2019 Author Posted July 9, 2019 Like this? While WinExists("Error - Arbitrage Crypto Trader v.2.5.0", "") Sleep(50) WinClose("Error - Arbitrage Crypto Trader v.2.5.0", "") WEnd ; Click start first pair. MouseMove(470, 70) MouseClick("") Sleep(3000) MouseMove(1028, 255) MouseClick("") Sleep(2000) The script closes down the error windows that appear, but then doesn't move onwards with the mouse clicks.
FrancescoDiMuro Posted July 9, 2019 Posted July 9, 2019 @RizlaUK Better put the code in a "While 1" loop, and set an hotkey to interrupt the script execution Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
Developers Jos Posted July 9, 2019 Developers Posted July 9, 2019 4 hours ago, RizlaUK said: Like this? Nope as that only will do it one time. Try thinking about the logic and script flow and I am sure you figure it out. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
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