一些特殊符号的键盘值

时间:2021-07-02 16:19:55

用这个   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