input
input($string,$timeout=0); - this function is used for full emulation of keyboard input
the function accepts parameters as input:
$string – string to be emulated. (string)
$timeout – the time in milliseconds that the system waits between entering individual letters of the string (by default, do not wait) (int).
If you press Ctrl while this function is running (or emulate pressing via the set_ctrl_prefix commands), the sent string will be interpreted as a set of hot keys for human.
After testing, the function returns the result of its work to the script :
true – successfully entered the specified string(boolean)false – operation failed (boolean)