타이머로 notepad.exe 가 켜지면 4초뒤에 F1이란 단축키를 누르게 해야 되는데.
if IsRunningProcess('notepad.exe') = TRUE then
begin
Timer1.Interval := 3000;
Timer1.Enabled := True;
Keybd_Event(VK_F1, MapVirtualKey(VK_F1, 0), 0, 0);
Application.Terminate;
이렇게 하긴 했는데 적용도 안되고 모르겠어서 질문 올립니다.
|