屏蔽/启用鼠标与键盘(输入)。
BlockInput ( 标志 )
参数
| 标志 | 1 = 屏蔽用户输入 0 = 启用用户输入 |
返回值
无
注意
若启用了 BlockInput 则所有的 Alt 键将无法发送!| 操作系统 | "BlockInput" 应用结果 |
| Windows 95 | 无效果。 |
| Windows 98/Me | 用户输入将被屏蔽,连 AutoIt 也不能模拟输入。 |
| Windows NT 4 (未安装 ServicePack 6) | 无效果。 |
| Windows NT 4 (已安装 ServicePack 6) | 用户输入将被屏蔽,但 AutoIt 能模拟大部分的输入行为。 |
| Windows 2000 | 用户输入将被屏蔽,但 AutoIt 能模拟大部分的输入行为。 |
| Windows XP | 用户输入将被屏蔽,但 AutoIt 能模拟大部分的输入行为。但有例外情况,请看下面的说明。 |
相关
Send
示例
If @OSVersion <> "WIN_98" And @OSVersion <> "WIN_ME" Then
BlockInput(1)
EndIf
Run("notepad")
WinWaitActive("无标题 - 记事本")
Send("{F5}") ;插入时间及日期
BlockInput(0)