What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-05 16:30:04
how to get keyboard input and if no input is pressed program doesn't stop 8086
BITS 16 ORG 100h _loop: ; ; L O O P S T U F F ; ;Show a greeting message mov ah, 09h mov dx, strGreetings int 21h ; ; K E Y S C H E C K ; ;Check for a keystroke mov ah, 01h int 16h jz _loop ;ZF is s... Add solution -
Python 2022-02-01 23:06:11
python listen to keyboard input linux
# For windows from pynput import keyboard def on_press(key): try: k = key.char # single-char keys except: k = key.name # other keys print('Key pressed: ' + k) return False # stop listener; remove this if want more keys ... Add solution -
Shell/Bash 2021-11-21 20:30:11
docker exit
Just Stopping the Container If you want to stop and exit the container, and are in an interactive, responsive shell - press ctrl+d to exit the session. You could as well type the exit command. TL;DR: press ctrl+c then ctrl+d - that means, keep the ctrl ke... Add solution -
-
C++ 2021-10-17 07:48:03
c++ menu selection with arrow keys
// Menu example for tjnapster #include <iostream> #include <conio.h> #include <windows.h> #include <cstdlib> using namespace std; HANDLE console = GetStdHandle(STD_OUTPUT_HANDLE); // used for goto COORD CursorPosition; // used fo... Add solution -
Javascript 2021-10-06 20:47:03
activate an event on press escape button in jquery
// You can use $.Event() to create an Event object containing a keydown event with the keyCode of 27 (which should be Esc) like: var esc = $.Event("keydown", { keyCode: 27 }); $("body").trigger(esc); // change body to the element wher... Add solution -
Shell/Bash 2021-09-30 00:37:04
powershell keep skype active
#The below script will trigger dot key every 60 secs param($minutes = 60) #//Duration. Until 60 mins below script will run $myshell = New-Object -com "Wscript.Shell" for ($i = 0; $i -lt $minutes; $i++) { Start-Sleep -Seconds 60 #//every 60 ... Add solution
Best helpers
Ranking is empty