Jump to content

Recommended Posts

Posted

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

Posted

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.

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
×
×
  • Create New...