send_key
send_key($key,$is_key=false); - this function is used to emulate events for entering a given key from the keyboard. It can work even if the program is minimized and in the system tray. (available from version 4.6.31)
the input Function accepts parameters:
$key – the key that will be emulated. (string)
$is_key – if false, interprets the key parameter as the key code and not the key itself.
If you press Ctrl while this function is running (or emulate pressing via the set_ctrl_prefix commands), the sent key 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 emulated the input of the specified key(boolean)false – operation failed (boolean)