These are two different programs. I would like to use the program_A to check program_B is open or not? But I found that if I open a window_B.txt also passed inspection.
How to make Window_A check the AHK's Window_B only?
Program_A :
Code: Select all
IfWinNotExist, Window_B
{
MsgBox, 48,, Window_B is not opened
Exitapp
}
Code: Select all
Gui, Show, h90 w150, Window_B
Gui, Color, cBlack
Gui, Font, Norm S45 W900 cRed , Calibri
Gui, Add, Text, x6 y10, PASS
return
GuiClose:
ExitApp