掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
exe起動時に押下キーの判定をするには? (ID:10570)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
こんな感じ program Project1; uses Forms, Windows, Dialogs, Unit1 in 'Unit1.pas' {Form1}; {$R *.RES} function IsVirtualKeyPressed(VKey:WORD):Boolean; begin result := (GetAsyncKeyState(VK_F11) and $8000)<>0; end; begin if IsVirtualKeyPressed(VK_F11) then ShowMessage('Pressed'); Application.Initialize; Application.CreateForm(TForm1, Form1); Application.Run; end.
←解決時は質問者本人がここをチェックしてください。
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.