Still having trouble, launching the program to launching the second program works fine but it wont enter the Send functions after the second .exe runs and opens. Here what I got
PHP Code:
While 1
If Not ProcessExists("example1.exe") Then ProcessClose ("example2.exe")
Run("example1.exe")
Sleep (12000)
Send ("eaxample")
Send ("{ENTER}")
Sleep (5000)
Send ("{ENTER}")
Sleep (20000)
Run ("example2.exe")
Sleep (5000)
Send ("{TAB}")
Send ("{UP}")
Send ("{TAB}")
Send ("{DOWN}")
Send ("{TAB}")
Send ("{UP}")
Send ("{TAB}")
Send ("{TAB}")
Send ("{ENTER}")
WinActivate ("example1")
Sleep (300000)
WEnd