input
input($string,$timeout=100); - this function is used to emulate input of a string of characters from the keyboard at the hardware level, relative to the current window (input focus is passed to the current window when this function is called)
the input Function accepts parameters:
$string – the string of characters to enter.
$timeout – pause between entering each character (in milliseconds).
After testing, the function returns the result of its work to the script :
true – emulation was done
false – emulation was not successful