Hi all
i want to make a script :
while notepad is running a button is visible and when Notepad is not running the button is not visible
and when i press the button try.exe is opened
#include <WindowsConstants.au3>
#include <GuiConstantsEx.au3>
$GUI = GUICreate("MY GUI", -1,-1,-1,-1, $WS_POPUP , $WS_EX_TOPMOST)
$but = GUICtrlCreateButton("", -1, -1, 100, 100)
guisetstate()
While 1
$nMsg = GUIGetMsg()
WinSetOnTop($GUI, "", 1)
$menu = WinExists("[CLASS:Notepad