[code language=”delphi”]
procedure TForm1.Button1Click(Sender: TObject);
var
KeyState : Word;
S : String;
begin
KeyState := GetKeyState(VK_SCROLL);
S := ‘Клавиша: VK_SCROLL. Состояние:’;
if KeyState and $8000 = $8000 then
S := s+’down’
else
S := s+’up’;
if KeyState and 1 = 1 then
S := S + ‘toggle on’
else
S := S + ‘toggle off’
;
ShowMessage( S );
end;
[/code]
Delphi keyboard
[code language=”delphi”]
function GetRealChar(AKey: Word): Char;
var
Layout: HKL;
KeyboardState: TKeyboardState;
RealCode: AnsiString;
ScanCode: Integer;
s: string;
begin
Layout := GetKeyboardLayout(GetCurrentThreadID);
SetLength(RealCode, 1);
FillChar(RealCode[1], Length(RealCode), 0);
FillChar(KeyboardState[0], SizeOf(KeyboardState), 0);
KeyboardState[AKey] := 0;
ScanCode := (AKey shr 16) and $FF;
ToAsciiEx(AKey, ScanCode, KeyboardState, PChar(RealCode), 0, Layout);
s := RealCode;
Result := s[1];
end;
[/code]
Signature
Your signature is the part of your handwriting that says the most about your personality. It is quite normal for your signature to change during your life, as your signature reflects how you evolve as a person. It is also common to have several signatures, for example a more formal signature (name and surname) when you sign a credit card or passport, and an informal signature (just your first name) when you sign a birthday card.
Your formal signature – A signature usually contains either a first name and a surname, or initials and a surname, or, less frequently a first name and initials. Your first name represents your private or family self, and your surname represents your public self, how you are socially and at work. If your first name is more prominent in your signature, this implies that you have positive feelings about your childhood and that your “private” self is more important to you than your “public” self.
If your surname is more prominent, this means that your “public” self is more important to you. The more space there is between your name and surname, the more you wish to keep your public and your private self separate. If you use only initials either for your first name or your surname in your signature, this means that you are more secretive about this part of your personality (your private or public persona).
Legibility — A legible signature, where names can be clearly read, implies that you are a person with clear ideas and objectives. The more illegible your signature is, the less assertive you are as a person, and the more you tend to avoid conflict.
Angle — Most signatures are horizontal, rising, or descending. A rising signature means that you are the kind of person who, when faced with problems, will work to overcome them. Usually optimistic, you are in control and ambitious. A descending signature means that you have a tendency to get depressed and give up when faced with problems, and lack self-confidence. Some people’s signatures go through a temporary phase where they go down, which shows that they are going through a hard time or an illness. A horizontal signature suggests an emotionally stable person who is well-balanced and generally satisfied with the way their life is going.
Size — If your signature is bigger than the rest of the letter or document you have written, that means that you are self-confident and have quite a high opinion of yourself. Some people actually sign in capital letters, which suggests they are arrogant rather than self-confident. People whose signature is smaller than the rest of the text may be insecure and have low self-esteem.