Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Keyboard hook help??

[es] :: Pascal / Delphi / Kylix :: Keyboard hook help??

Strane: 1 2

[ Pregleda: 5881 | Odgovora: 22 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

Nemanja Avramović
Engineering Manager
MENU Technologies
Beograd, Srbija

Član broj: 32202
Poruke: 4391
62.108.102.*

Sajt: https://avramovic.info


+46 Profil

icon Re: Keyboard hook help??09.07.2005. u 23:19 - pre 229 meseci
hvala, nadam se da cu skontati neshto iz toga :)
Laravel Srbija.

[NE PRUŽAM PODRŠKU ZA PHP PREKO PRIVATNIH PORUKA!]
 
Odgovor na temu

borovac
127.0.0.1

Član broj: 29278
Poruke: 220
*.dlp458.bih.net.ba.



Profil

icon Re: Keyboard hook help??10.07.2005. u 15:58 - pre 229 meseci
Code:

{ Keyboard LowLevel structure }
  PKbdLLHookStruct = ^TKbdLLHookStruct;
  tagKBDLLHOOKSTRUCT = packed record
    vkCode: DWORD;
    scanCode: DWORD;
    flags: DWORD;
    time: DWORD;
    dwExtraInfo: ULONG_PTR;
  end;


Code:
function KeyHookFunc(Code, VirtualKey, KeyStroke: integer): LRESULT; stdcall;

gore u onoj strukturi vkCode je vjerovatno isto što i VirtualKey
Koje do promjenjivih iz gornje strukture odgovaraju promjenljivim Code i KeyStroke??

Ako sam dobro skonto ovako to trreba da ide:
Code:
function KeyHookFunc(Code, wParam:integer; LParam: KBDLLHOOKSTRUCT): LRESULT; stdcall;

 
Odgovor na temu

Srki_82
Srdjan Tot
Me @ My Home
Ljubljana

Član broj: 28226
Poruke: 1403
82.208.201.*

ICQ: 246436949


+10 Profil

icon Re: Keyboard hook help??10.07.2005. u 16:36 - pre 229 meseci
KBDLLHOOKSTRUCT
The KBDLLHOOKSTRUCT structure contains information about a low-level keyboard input event.

typedef struct tagKBDLLHOOKSTRUCT {
DWORD vkCode;
DWORD scanCode;
DWORD flags;
DWORD time;
ULONG_PTR dwExtraInfo;
} KBDLLHOOKSTRUCT, *PKBDLLHOOKSTRUCT;

Members

vkCode
Specifies a virtual-key code. The code must be a value in the range 1 to 254.

scanCode
Specifies a hardware scan code for the key.

flags
Specifies the extended-key flag, event-injected flag, context code, and transition-state flag. This member is specified as follows.
0 - Specifies whether the key is an extended key, such as a function key or a key on the numeric keypad. The value is 1 if the key is an extended key; otherwise, it is 0.
1-3 - Reserved.
4 - Specifies whether the event was injected. The value is 1 if the event was injected; otherwise, it is 0.
5 - Specifies the context code. The value is 1 if the ALT key is pressed; otherwise, it is 0.
6 - Reserved.
7 - Specifies the transition state. The value is 0 if the key is pressed and 1 if it is being released.

An application can use the following values to test the keystroke flags. Value Purpose
LLKHF_EXTENDED Test the extended-key flag.
LLKHF_INJECTED Test the event-injected flag.
LLKHF_ALTDOWN Test the context code.
LLKHF_UP Test the transition-state flag.

time
Specifies the time stamp for this message.

dwExtraInfo
Specifies extra information associated with the message.

Moze ovako da ide
Code:
function KeyHookFunc(Code, wParam:integer; LParam: PKbdLLHookStruct): LRESULT; stdcall;

 
Odgovor na temu

[es] :: Pascal / Delphi / Kylix :: Keyboard hook help??

Strane: 1 2

[ Pregleda: 5881 | Odgovora: 22 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.