Jump to content

Recommended Posts

  • Developers
Posted

Try:

While 1
    If WinActive("[CLASS:WordPadClass]", "") Or WinActive("[CLASS:Notepad]", "") Then ExitLoop
    Sleep(10)
WEnd
MsgBox(0, "Now", "You can write")

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.
  :)

Posted

Thank you, but when I implement a rest of code it will be one hell of a script with alot of while's... :)

And how do you think WinWaitActive works? ;)

If you're using it on multiple places, make it a function.

Quick example:

Func _ABC($sTitle1, $iTitle2)
    While 1
        If WinActive($sTitle1, "") Or WinActive($iTitle2, "") Then ExitLoop
        Sleep(10)
    WEnd
EndFunc

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
  • Recently Browsing   0 members

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