看板 C_Sharp 關於我們 聯絡資訊
class System.Windows.Forms.SendKey可呼叫Send(string keys) 可傳送按鍵至應用程式! 當我寫System.Windows.Forms.SendKeys.Send("123"); 他會自動幫我輸入 123 但我想要傳送的按鍵為非字串類按錯…如:F1、F2、↑、→...等等 我試過用送入 鍵盤的按鍵碼0x???? 果然是不行! 不知道還有其他好用的方法可以達成非字串式sendkey? 可以的話幫幫我~感謝感謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.166.57.52
EricTsai:遊標停在Send上按F1看說明....... 03/23 09:07
stmbngx:謝謝^^ 在f1中看到了! 03/23 14:10