Ive removed the the need for the exe to be passed a variable and the exe still hangs... strange
<html>
<head><title>PHP Get Send</title></head>
<body>
<?php
$var = $_GET['input'];
$myfile = fopen("yell.txt", "w");
$txt = "{$var}";
fwrite($myfile, $txt);
fclose($myfile);
exec("test2.exe");
?>
</body>
</html>
The exe now just reads from the text file and types it out. But launching it from php make sit hang.
heres the exe code.
WinWait, UltimateScape | Dagonoth,
IfWinNotActive, UltimateScape | Dagonoth, , WinActivate, UltimateScape | Dagonoth,
WinWaitActive, UltimateScape | Dagonoth,
FileRead, text, yell.txt
Send, {SHIFTDOWN};;{SHIFTUP}yell{SPACE}%text%{ENTER}
exit