send_key_down
send_key_down($key,$is_key=false); - this function is used to emulate pressing a given key from the keyboard at the event level. 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 control key code.
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 pressing the specified key(boolean)false – operation failed (boolean)