Through the Oemkeyscan and Mapvirtualkey functionsOemkeyscan can get the scan code as well as the transition state, the state has shift is pressed, CTRL is pressed, Alt is pressed and so on.Mapvirtualkey Translate (map) a virtual key into a scan code or a character value, or translate a scan code into a virtual key code.1 DWORD SC, shift;2UnsignedCharvkey;3 CharA;4CString str ="ABC";5 for(inti =0; I//simul
We know that each key on the keyboard corresponds to a code, tapping the keyboard, in fact, the computer hardware through the logic gate circuit to generate binary digits to represent this code, and then passed to the CPU.
The following is a summary of the char codes supported by javascript:
Virtual-key codes
--------------------------------------------------------------------------------
The following table shows the symbolic constant names, hexadecimal values, and mouse or keyboard equivalents for the virtual-key codes used by the system. The
List-unidirectional linked list uva 11988 broken Keyboard (a.k.a.beijiu text) (broken keyboard (tragic text))
The new C + + 2011 Standard C++11 Adds the Forward_list,forward_list design goal to achieve comparable performance with the best handwritten unidirectional linked l
JavaScript has 3 event handles in the input state of the corresponding keyboard: KeyDown, KeyPress, and KeyUp.
The corresponding meaning is: The key is pressed (press the button but has not been lifted), click the button (press and lift the button), press the key to lift (after the key)
Classification of keys
Keys ca
Mac OS X keyboard logo, shortcut key, switch operation key, screenshot capture tool Mac keyboard logo explanation ------------------------------------------------- (Command key)-on some Apple keyboards, this key may also contain t
action. Because more than two buttons are pressed at the same time, the multi-key action is followed by first, and so on. Assume that the author presses
Figure 8.3 multi-key behavior, first press and then put ②.
Then let's assume that the author presses
Once the finger is aware, release
, The PS/2 Keyboard will send the 8'hf0 8' H12 and 8'hf0 8' H1c and othe
Common windows keyboard key virtual code
Common ASCII codes for keyboardsESC key vk_escape (27)Enter the key: vk_return (13)Tab key: vk_tab (9)Caps Loc
List of keyboard shortcuts in Windows XP
Click here to show/hide list
CTRL + C (copy)
CTRL + x (delete the selected option and save its copy to the clipboard)
CTRL + V (paste)
CTRL + z (UNDO)
Delete)
Shift + Delete (permanently delete the selected item without moving it to the "recycle bin ")
Press ctrl to drag the item (copy the option)
Press Ctrl + shi
(search engine can choose, Maxthon options → search) CTRL + Shift + s open the "Save web page" Panel (you can save all the content on the current page, equivalent to Ctrl + S) CTRL + Shift + W close all labels except lock labels (window) Ctrl + Shift + F6 switch the labels backward (window) according to the order in which the page is opened) CTRL + Shift + Tab Single Mode up switch label (window) CTRL + Shift + enter domain name automatically complete Alt + 1 save current form Alt + 2 save as g
The function of each key on the keyboard !!! (The most comprehensive in History)F1 helpF2 renameF3 searchF4 addressF5 refreshF6 SwitchingF10 menuCTRL + A select allCTRL + C copyCTRL + X cutCTRL + V PasteCTRL + Z undoCTRL + O openSHIFT + DELETE permanent DeletionDELETEALT + ENTER attributesALT + F4 disabledCTRL + F4 closeALT + TAB SwitchALT + ESC switchALT + Space key
Use the keyboard to implement page jumps. To change the location back to the address you want to jump, the example is to use the direction key to achieve MovableType log page of the previous, after a jump code.
code is as follows
copy code
/tbody>
P.S. Numeric code corresponding to commonly used keys:
A (65), B (66), C (67), D (68), E (69), F (70), G (71), H
button if the active option is a group of option buttons)
· F1 key (Show help)
· F4 key (displays items in the active list)
· Backspace (If a folder is selected in the Save As or Open dialog box, open the previous folder)
Microsoft Natural keyboard shortcut keys
· Windows logo (show or hide the Start menu)
· W
changeable, Maxthon option → address bar → regular)Alt + 1 save the current formAlt + 2 save as common formAlt + A expand the Favorites list
Resource ManagerEnd displays the bottom of the current windowHome displays the top of the current windowNumlock + minus sign (-) of the numeric keypad collapse the selected folderNumlock + the plus sign (+) on the numeric keyboard shows the content of the selected fol
InputBeijuthis_is_a__textHappy_birthday_to_tsinghua_universityThe main topic: When you enter the article, the Home button on the keyboard and the end key out of the problem, will not be timed to press.Text that gives you a keystroke, where ' [' means the home key, '] ' represents the end key, and outputs the text of t
layout's Editext ID, this method writes very clearly, displays the input method and hides the input method, when you call in other methods, just set Onfoucschange (true) or Onfoucschange (false ), then the question came, here in 2 cases,1. Method I have included the input box to get the focus of the methodCommentedit.setfocusable (True); Commentedit.requestfocus ();Then how to hide after the input, yes, just said Onfoucschange (false), you can set the click event outside the input box, and then
You ' re typing a long text with a broken keyboard. Well it's not so badly broken. The only problem with the keyboard are that sometimes the "home" key or the "end" key gets automatically pressed (internall Y).You ' re not aware of this issue, since your ' re focusing on the text and do not even turn on the monitor! Af
11988-broken Keyboard (a.k.a. Beiju Text)You ' re typing a long text with a broken keyboard. Well it's not so badly broken. The only problemWith the keyboard are that sometimes the "home" key or the "end" key gets automatically pressed(internally).You ' re not
249 = odiaeresis OdiaeresisKeyCode = Udiaeresis udiaeresisKeyCode 251 = ssharp question BackslashKeyCode 252 = Asciicircum DegreeKeyCode 253 = 3 SterlingKeyCode 254 = Mode_switchUseEvent.keycode value?? 7?38?39?40??? Is it better than Gila I? e is left, right, down."Javascript:if (Event.keycode if (event.keycode==13) means that the press-enter keyboard is pressed"Javascript:if (Event.keycode > event.keycode Javascript Document
Please press any
If a keyboard breaks down and you do not know it, press home or end to give you the actual input of the keyboard. The actual display on the display is displayed.
The input is up to 5 MB, so direct array retrieval will definitely time out and use an array to simulate the linked list.
#include
Broken keyboard
You'
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.