Jump to content

Recommended Posts

Posted

So I tried to make a script to check if active window title changed but it doesnt work. Here is a test example that shows in tooltip both title from current active window and if title has changed (it checks it in If statement). What did I do wrong?

$tooltip=""
While 1
if Not $tooltip=WinGetTitle("[active]") Then
ToolTip("different" & "   " & WinGetTitle("[active]"), 0, 0)
Sleep(500)
Else
ToolTip("equal" & "   " & WinGetTitle("[active]"), 0, 0)
EndIf
$tooltip=WinGetTitle("[active]")
WEnd

 

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