Sign in to follow this  
Followers 0
FreeSiker

Winactive - WinWaitActive Title

2 posts in this topic

Hi,

When i create a windows and i detect the windows with winactive or winwait active the script don't work with the windows title

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Moniteur", 131, 32, 500, 0, BitOR($WS_CAPTION,$WS_CLIPSIBLINGS))
$Label1 = GUICtrlCreateLabel("Merci de laissez ouvert", 8, 8, 112, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
If WinActive("Moniteur") Then
    MsgBox(0, "", "Window was active")
Else
    ConsoleWrite ("not detected" & @CRLF)
EndIf
Sleep (2000)
WEndoÝ÷ Ù°n¶'ȱëmëb¶W¨}¬"Ú0²)Ú½ªâi¹^Ü(®Kj{(ê'z×¥l°/Ûjëh×6#include <GUIConstants.au3>

$Monitor_title = "Monitor"

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate($Monitor_title, 131, 32, 500, 0, BitOR($WS_CAPTION,$WS_CLIPSIBLINGS))
$Label1 = GUICtrlCreateLabel("Merci de laissez ouvert", 8, 8, 112, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
If WinActive($Monitor_title) Then
    MsgBox(0, "", "Window was active")
Else
    ConsoleWrite ("not detected" & @CRLF)
EndIf
Sleep (2000)
WEnd

Thank you

Share this post


Link to post
Share on other sites



They both work fine here.

Share this post


Link to post
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
Sign in to follow this  
Followers 0