我正在編寫一個使用SendInput()函數來模擬擊鍵的C程序。但是,編譯時出現以下錯誤:error LNK2019: unresolved external symbol [email protected] referenced in function _main。我正在使用VisualStudio開發人員命令提示進行編譯。這裏是我的代碼: #define WINVER 0x0500
#inc
我想用The SendInput API在遊戲中自動按下一個鍵,而不必使用延遲。我想按鍵儘可能快,所以我想遠離使用延遲,如Task.Delay或Thread.Sleep方法。 專注於Strum方法。 無論何時用戶使用Ctrl + B熱鍵,下面的代碼將按下右側的SHIFT鍵18次。 using System;
using System.Runtime.InteropServices;
using