把改程序的快捷方式拷入啟動裡,讓其成為開機自啟動程序
程序在VS2005 WinXp系統下測試成功!
局限性:
1.需要主板BiOS支持自動開機;
2.開機以後電腦就連在互連網上;
3.需要.Net framework2.0的支持
來源:http://blog.csdn.Net/firestone2003/archive/2006/06/24/829316.ASPx#464431
用這個System.Windows.Forms.SendKeys.Send(); 就是模擬鍵盤
下面是一些特殊符號的鍵盤值
System.Windows.Forms.SendKeys.Send("+="); //值+
System.Windows.Forms.SendKeys.Send("+9"); //值(
System.Windows.Forms.SendKeys.Send("+8"); //值*
System.Windows.Forms.SendKeys.Send("+7"); //值&
System.Windows.Forms.SendKeys.Send("+6"); //值^
System.Windows.Forms.SendKeys.Send("+5"); //值%
System.Windows.Forms.SendKeys.Send("+4"); //值$
System.Windows.Forms.SendKeys.Send("+3"); //值#
System.Windows.Forms.SendKeys.Send("+2"); //值@
System.Windows.Forms.SendKeys.Send("+1"); //值!
System.Windows.Forms.SendKeys.Send("+0"); //值)
System.Windows.Forms.SendKeys.Send("+`"); //值~
下面是常用的值
代表的鍵 指定值 KeyLabelName ← LEFTARROW → RIGHTARROW ↑ UPARROW ↓ DNARROW HOME HOME END END PAGE UP PGUP PAGE DOWN PGDN DEL DEL BACKSPACE BACKSPACE SPACEBAR SPACEBAR INS INS TAB TAB SHIFT+TAB BACKTAB Left Brace LBRACE Right Brace RBRACE ENTER ENTER F1 to F12 F1, F2, F3 ... CTRL+F1 to CTRL+F12 CTRL+F1, CTRL+F2 ... SHIFT+F1 to SHIFT+F12 SHIFT+F1, SHIFT+F2 ... ALT+F1 to ALT+F12 ALT+F1, ALT+F2, ALT+F3 ... ALT+0 to ALT+9 ALT+0, ALT+1, ALT+2 ... ALT+A to ALT+Z ALT+A, ALT+B, ALT+C ... CTRL+LEFT ARROW CTRL+LEFTARROW CTRL+RIGHT ARROW CTRL+RIGHTARROW CTRL+HOME CTRL+HOME CTRL+END CTRL+END CTRL+PAGE UP CTRL+PGUP CTRL+PAGE DOWN CTRL+PGDN CTRL+A TO CTRL+Z CTRL+A, CTRL+B, CTRL+C ... CTRL+0 CTRL+0 RIGHT MOUSE BUTTON RIGHTMOUSE LEFT MOUSE BUTTON LEFTMOUSE MOUSE BUTTON MOUSE ESC ESC