Manage Learn to apply best practices and optimize your operations.

Look For An Active Window In Windows

The script find if a window (aplication) is active in Windows
It?s call "Active Window" when the aplication is executing. If you see that,
all the aplications in Windows has a title on the left top corner, in base of
this title we realized that the window is still active. In this example we
prove with Calculator of Window (Calc.exe)
'in the event Declarations (action, button, agent)

Declare Function FindWindow Lib "user32" Alias "FindWindowA" (Byval
lpClassName&, Byval lpWindowName As String) As Long

' in the event click or initialize o, etc..

Dim winHwnd As Long
Dim RetVal As Long
winHwnd = FindWindow(0, "Caculator")
If winHwnd <> 0 Then
Msgbox "The calculator is executing"
Msgbox "The calculator is not open"
End If

Dig Deeper on Domino Resources - Part 6

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...