8月142015
键盘鼠标参数表
放置消息到消息队列并返回,可以给第三方程序/游戏发送键盘动作。
_WinAPI_PostMessage ( $hWnd, $iMsg, $wParam, $lParam )
参 数
$hWnd 接收消息的程序所在窗口标识.
如果这个参数为 0xFFFF (HWND_BROADCAST), 消息被发送到系统中所有顶层窗口, 包括禁用或不可见的窗口, 重叠窗口, 与弹出窗口. 但该消息不会发送到子窗口.
$iMsg 发送的消息
$wParam 第一个消息参数
$lParam 第二个消息参数 ```
<br />
<p>
<br />
</p>
```<code class="language-autoit hljs">
鼠标动代码:
move = 0x0001,
leftdown = 0x0002,
leftup = 0x0004,
rightdown = 0x0008,
rightup = 0x0010,
middledown = 0x0020,
键盘动作代码:
VK_LBUTTON=1, //鼠标左键
VK_RBUTTON=2, //鼠标右键
VK_CANCEL=3, //Ctrl+Break(通常不需要处理)
VK_MBUTTON=4, //鼠标中键
VK_BACK=8, //Backspace
VK_TAB=9, //Tab
VK_CLEAR=12, //Num Lock关闭时的数字键盘5
VK_RETURN=13, //Enter(或者另一个)
VK_SHIFT=16, //Shift(或者另一个)
VK_CONTROL=17, //Ctrl(或者另一个)
VK_MENU=18, //Alt(或者另一个)
VK_PAUSE=19, //Pause
VK_CAPITAL=20, //Caps Lock
VK_ESCAPE=27, //Esc
VK_SPACE=32, //Spacebar
VK_PRIOR=33, //Page Up
VK_NEXT=34, //Page Down
VK_END=35, //End
VK_HOME=36, //Home
VK_LEFT=37, //左箭头
VK_UP=38, //上箭头
VK_RIGHT=39, //右箭头
VK_DOWN=40, //下箭头
VK_SELECT=41, //可选
VK_PRINT=42, //可选
VK_EXECUTE=43, //可选
VK_SNAPSHOT=44, //Print Screen
VK_INSERT=45, //Insert
VK_DELETE=46, //Delete
VK_HELP=47, //可选
VK_NUM0=48, //0
VK_NUM1=49, //1
VK_NUM2=50, //2
VK_NUM3=51, //3
VK_NUM4=52, //4
VK_NUM5=53, //5
VK_NUM6=54, //6
VK_NUM7=55, //7
VK_NUM8=56, //8
VK_NUM9=57, //9
VK_A=65, //A
VK_B=66, //B
VK_C=67, //C
VK_D=68, //D
VK_E=69, //E
VK_F=70, //F
VK_G=71, //G
VK_H=72, //H
VK_I=73, //I
VK_J=74, //J
VK_K=75, //K
VK_L=76, //L
VK_M=77, //M
VK_N=78, //N
VK_O=79, //O
VK_P=80, //P
VK_Q=81, //Q
VK_R=82, //R
VK_S=83, //S
VK_T=84, //T
VK_U=85, //U
VK_V=86, //V
VK_W=87, //W
VK_X=88, //X
VK_Y=89, //Y
VK_Z=90, //Z
VK_NUMPAD0=96, //0
VK_NUMPAD1=97, //1
VK_NUMPAD2=98, //2
VK_NUMPAD3=99, //3
VK_NUMPAD4=100, //4
VK_NUMPAD5=101, //5
VK_NUMPAD6=102, //6
VK_NUMPAD7=103, //7
VK_NUMPAD8=104, //8
VK_NUMPAD9=105, //9
VK_NULTIPLY=106, //数字键盘上的*
VK_ADD=107, //数字键盘上的+
VK_SEPARATOR=108, //可选
VK_SUBTRACT=109, //数字键盘上的-
VK_DECIMAL=110, //数字键盘上的.
VK_DIVIDE=111, //数字键盘上的/
VK_F1=112,
VK_F2=113,
VK_F3=114,
VK_F4=115,
VK_F5=116,
VK_F6=117,
VK_F7=118,
VK_F8=119,
VK_F9=120,
VK_F10=121,
VK_F11=122,
VK_F12=123,
VK_NUMLOCK=144, //Num Lock
VK_SCROLL=145 // Scroll Lock
middleup = 0x0040,
xdown = 0x0080,
xup = 0x0100,
wheel = 0x0800,
virtualdesk = 0x4000,
absolute = 0x8000
扫描二维码,在手机上阅读
发表评论
木有头像就木JJ啦!还木有头像吗?点这里申请属于你的个性Gravatar头像吧!