作者stmbngx (哈其洛庫)
看板C_Sharp
標題[問題] 是否有其他SendKeys的方法?
時間Thu Mar 23 01:46:52 2006
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