Reset keyboard lazarus / 34-Windows ---------------------------------------------------------------------- pcurtis · 2021-05-18 05:24 Two things. 1. I am playing with SendInput, when I make a mistake (keys get stuck as pressed) I usually have to restart my PC to reset the keyboard. Can I reset it programmatically? 2. Anyone know how to send, for example, ALT+0149 (numeric keypad) or CTRL+ALT+DELETE ---------------------------------------------------------------------- pcurtis · 2021-05-18 06:06 A little more info. I am disabled and only have one arm. It is impossible for me to perform complex key strokes, so I was thinking of an app with three toggle buttons - CTRL ALT SHIFT that I could press that would press and hold each respective key. So for example I could click ALT then press 0 1 4 9,  on the numeric keypad, release the ALT key to enter the character. ---------------------------------------------------------------------- paweld · 2021-05-18 06:42 https://wiki.freepascal.org/MouseAndKeyInput or Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i uses Windows; keybd_event(VK_MENU, 0, 0, 0); //alt downkeybd_event(VK_0, 0, 0, 0);keybd_event(VK_0, 0, KEYEVENTF_KEYUP, 0); keybd_event(VK_1, 0, 0, 0);keybd_event(VK_1, 0, KEYEVENTF_KEYUP, 0); keybd_event(VK_4, 0, 0, 0);keybd_event(VK_4, 0, KEYEVENTF_KEYUP, 0); keybd_event(VK_9, 0, 0, 0);keybd_event(VK_9, 0, KEYEVENTF_KEYUP, 0); keybd_event(VK_MENU, 0, KEYEVENTF_KEYUP, 0); //alt up ---------------------------------------------------------------------- trev · 2021-05-18 06:49 The operating system already provides this facility: see, for example, https://www.isunshare.com/windows-10/3-ways-to-turn-on-and-off-sticky- keys-in-windows-10.html ---------------------------------------------------------------------- pcurtis · 2021-05-18 07:13 @trev How can I send ALT 0149 with sticky keys? The ALT key is released when I press 0, MS not very sticky  @paweld VK codes do not work, I must use scan codes (0x38 = VK_MENU), but the same problem, the ALT key is released when I press another key ---------------------------------------------------------------------- trev · 2021-05-18 07:28 Windows 10 sticky keys feature works for me - I just tested it. ---------------------------------------------------------------------- pcurtis · 2021-05-18 08:34 I know, it works here also but out of interest  I would like to try my own app and solve the issue as described above.