현재 키 상태에서 컨트롤키를 추가해서 누른 효과입니다
if 문을 써서 F2를 snfmfEoaks wjrdydzpgkaus ehlfrjqslek.
var
pKeyboardState : ^TKeyboardState;
begin
New(pKeyboardState);
GetKeyboardState(pKeyboardState^); //초기 상태 구함
pKeyboardState^[VK_CONTROL] := $80; //Ctr키를 누를 상태로 설정
SetKeyboardState(pKeyboardState^);
end;
해제하는 것은
var
pKeyboardState : ^TKeyboardState;
begin
New(pKeyboardState);
GetKeyboardState(pKeyboardState^); //초기 상태 구함
pKeyboardState^[VK_CONTROL] := $0; //Ctr키를 누를 상태해제
SetKeyboardState(pKeyboardState^);
end;
if 문을 써서 F2를 snfmfEoaks wjrdydzpgkaus ehlfrjqslek.
var
pKeyboardState : ^TKeyboardState;
begin
New(pKeyboardState);
GetKeyboardState(pKeyboardState^); //초기 상태 구함
pKeyboardState^[VK_CONTROL] := $80; //Ctr키를 누를 상태로 설정
SetKeyboardState(pKeyboardState^);
end;
해제하는 것은
var
pKeyboardState : ^TKeyboardState;
begin
New(pKeyboardState);
GetKeyboardState(pKeyboardState^); //초기 상태 구함
pKeyboardState^[VK_CONTROL] := $0; //Ctr키를 누를 상태해제
SetKeyboardState(pKeyboardState^);
end;
hsr/////////////////////////////////////////////////////