keyboard_lastkey
keyboard_lastkey
Cette variable contient le code de la dernière touche du clavier pressée (0 si aucune touche n'a été pressée).
Cette variable peut être modifiée.
Vous pouvez lui affecter la valeur 0 si vous souhaitez le gérer par vous-même.
valeurs possibles de cette variable :
vk_nokey vk_anykey vk_left vk_right vk_up vk_down vk_enter vk_escape vk_space vk_shift vk_control vk_alt vk_backspace vk_tab vk_home vk_end vk_delete vk_insert vk_pageup vk_pagedown vk_pause vk_printscreen vk_f1...vk_f12 vk_numpad0 ... vk_numpad9 vk_multiply vk_divide vk_add vk_subtract vk_decimal ord('A') ... ord('Z') ord('0') ... ord('9') | aucune touche n'est pressée une touche quelconque est pressée touche flêche gauche touche flêche droite touche flêche haut touche flêche bas touche Entrée ou Enter touche échappement ou Echap touche Espace touche Shift control key touche Alt touche Backspace ou retour arrière touche Tab touche Home ou Début touche End ou Fin touche Delete ou Suppr touche Insert ou Inser touche Page up touche Page down touche pause / break touche printscreen/sysrq ou Impr. écr touche fonction F1 à F12 touche des chiffres du pavé numérique touche multiplication (*) du pavé numérique touche division (/) du pavé numérique touche addition (+) du pavé numérique touche soustraction (-) du pavé numérique touche point décimal (.) du pavé numérique touches correspondant aux lettres. touches correspondant aux chiffres |
Exemple :
{
my_key=keyboard_lastkey
}
my_key=keyboard_lastkey
}