[問題] 是否有其他SendKeys的方法?

看板C_Sharp (C#)作者 (哈其洛庫)時間19年前 (2006/03/23 01:37), 編輯推噓2(200)
留言2則, 2人參與, 最新討論串1/1
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

03/23 09:07, , 1F
遊標停在Send上按F1看說明.......
03/23 09:07, 1F

03/23 14:10, , 2F
謝謝^^ 在f1中看到了!
03/23 14:10, 2F
文章代碼(AID): #148Ojam9 (C_Sharp)
文章代碼(AID): #148Ojam9 (C_Sharp)