Sponsored Content
Top Forums Shell Programming and Scripting Input keyboard keys upon program launch Post 302725357 by brunobliss on Friday 2nd of November 2012 06:28:07 AM
Old 11-02-2012
Input keyboard keys upon program launch

Hey guys, first post! I want to write a script that will wait 1 second and then input the keys CTRL+ALT+J to the application i just opened.

The program is dosbox, and thay key combination starts video recording Smilie I have no idea how to program this, can anyone help please?

thanks in advance!
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to launch program though telnet

I have launched telnet on nt and have connected to a unix server, I'm trying to run a program on the unix server which will launch a gui, but when I try to launch it I get the message "display not set\n" "By default set it to 0.0" I can sit down at the unix machine and launch the program with... (3 Replies)
Discussion started by: cbachman
3 Replies

2. Programming

launch an executable from a C++ program

Hi everybody! Could you please tell me how can I launch an executable from a C++ (on unix) program? thanks in advance! (2 Replies)
Discussion started by: nadiamihu
2 Replies

3. Shell Programming and Scripting

BASH: how to launch a program with parameters

Hi, I'm a pretty big fan of BASH scripting. I've got a bunch I use for random things and lately a couple issues have been plaguing me. Both are somewhat related, in that they deal with filenames with spaces and "escaped" characters and with launching a program with command line arguements... (5 Replies)
Discussion started by: TinCanFury
5 Replies

4. Programming

Problem with external program launch

Hello, in the application i'm writing i need to launch "recordmydesktop" to capture the screen,but i'm having a problem: when the recording stops,and the encoding of the saved file starts,the entire system hangs until the completion of the encoding.This happens if i launch recordmydesktop from my... (7 Replies)
Discussion started by: Zipi
7 Replies

5. SCO

SCO 6.0-Keys in keyboard function differently

Sir I have HP installed with SCO 6.0. The problems are (1) some keys in board like 'del' 'backspace', 'pageup/dn" do not function and display some special characters on conole. (2) Files transferred from Windows machine invariably contain control Z/M characters. How to resolve these issues. ... (4 Replies)
Discussion started by: chssastry
4 Replies

6. Linux

How to read keys from USB keyboard on AT91SAM9260

Hi Everyone, I am using 2.6.26.3-olimex kernel(Embedded system) running on AT91SAM9260. I am using a Logitech USB keyboard. It is detected as "/dev/input/event0". I don't know how to detect key press events and read the keys? Why can't I read the keys using scanf() like funtions? ... (7 Replies)
Discussion started by: siva4ever
7 Replies

7. Shell Programming and Scripting

Shell Script to launch C program

Hi there, im new too shell scripting and was wondering if it is possible to create a shell script to take in a variable and load a c program. My C program is a file monitor, and is started by using the terminal and using to following code ./monitor FileToBeMonitored is it possible to have... (12 Replies)
Discussion started by: gazmcc182
12 Replies

8. Solaris

Keys on Keyboard stop working

Hello, I hope I put this in the right forum... I searched for similar threads, but I couldn't find any that seem to deal with the problem I am having. My workplace is using (among other Solaris-machines) Dell Dimension T3500 as workstations (running Solaris 10 X86 10/09 u8,... (0 Replies)
Discussion started by: areichart
0 Replies

9. Shell Programming and Scripting

Read input from Keyboard, do not proceed if no input

Hi, I am working on a script, which requests users to enter input. Ex: read -p "Please enter your email id:" email I don't want users skipping this entry, this has to be mandatory.I dont want to proceed without input. I can do a check if variable $email is empty and proceed if not.But, i... (7 Replies)
Discussion started by: aravindadla
7 Replies
KEYMAP(5)							File Formats Manual							 KEYMAP(5)

NAME
keymap - keyboard maps SYNOPSIS
/etc/keymap DESCRIPTION
/etc/keymap is the compressed mapping from keyboard scan codes to ASCII. It is made from a keymap source file consisting of MAP_COLS col- umns (MINIX assigns the value 6 to MAX_COLS, corresponding to key pressed, key+SHIFT, key+LEFT_ALT, key+RIGHT_ALT, key+ALT+SHIFT and key+CTRL) and NR_SCAN_CODES rows (MINIX assigns the value 0x80 to NR_SCAN_CODES, corresponding to the number of scan codes to be provided by the keyboard), and each element is 2 bytes in length (see u16_t in type definitions). The low order byte corresponds to the character represented by the scan code, and the high order byte corresponds to the special meaning (when CAPS LOCK has effect, if it is a function key, etc.), which is converted to binary keymap format using the genmap utility. Types (general): <sys/types.h> <sys/types.h> defines the u8_t and u16_t types, corresponding to 8 and 16 bit values. Macros: <minix/keymap.h> C(c) - Control Maps to control code A(c) - Alt Sets the eight bit CA(c) - Control-Alt Short for A(C(c)) L(c) - Caps Lock Adds Caps Lock effect These macros are used in a keymap source file to help define keys. So instead of writing 032 to put a CTRL-Z in the map you write C('Z'). The L(c) macro is used in column 0 to tell that the Caps Lock key is active for this key. (Caps Lock should only have effect on letters.) Definitions: <minix/keymap.h> <minix/keymap.h> contains a large number of definitions for special keys, like function keys, and keys on the numeric keypad. They are: Escape key and modifiers: EXT, CTRL, SHIFT, ALT. Numeric keypad keys: HOME, END, UP, DOWN, LEFT, RIGHT, PGUP, PGDN, MID (numeric '5'), PLUS, INSRT. ALT + numpad key: AHOME, AEND, ..., AINSRT. CTRL + numpad: CHOME, CEND, ..., CINSRT. Lock keys: CALOCK (Caps Lock), NLOCK (Num Lock), SLOCK (Scroll Lock). Function keys: F1, ..., F12. ALT - function key: AF1, ..., AF12. CTRL - function key: CF1, ..., CF12. SHIFT - function key: SF1, ..., SF12. ALT - SHIFT - function key: ASF1, ..., ASF12. There is one key definition that isn't a key at all: EXTKEY. This keycode is sent by the keyboard as an indicator that the next keycode is special. For instance both ALT keys have the same keycode, but the right ALT key is sent by the keyboard preceded by the EXTKEY keycode. The same is true for the '/' key on the numeric pad versus the other '/' key on the US keyboard. (On other keyboards this key may have a different symbol.) The keyboard driver knows that a different key is presses if it is preceded by EXTKEY. Creating/changing keyboard mapping You can create your own keyboard mapping by copying one of the existing keymap source files (Standard Minix: kernel/keymaps/*.src, Minix- vmd: kernel/ibm/keymaps/*.src) and modifying the desired keys. Once this has been done, you need to recompile the genmap.c file, either by adding a new entry to the Makefile, or by running the following commands: cc -DKEYSRC="keymap.src" genmap.c After this, the keymap file can be generated by running: a.out > keymap.map The keymap can be loaded in the keyboard driver by: loadkeys keymap.map It is wise to first run loadkeys on one of the maps in /usr/lib/keymaps so that you can easily revert back to a known keymap with a few taps on the up-arrow key and pressing return. You will otherwise have to fix the keymap with a faulty keymap loaded into the keyboard driver, which is no fun. When the keymap is to your satisfaction you can copy it to /etc/keymap to have it loaded automatically at reboot. FILES
/etc/keymap Default keymap file SEE ALSO
loadkeys (1). AUTHOR
Victor A. Rodriguez - El bit Fantasma (Bit-Man@Tasa.Com.AR) KEYMAP(5)
All times are GMT -4. The time now is 11:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy