屏蔽/啟用鼠標(biāo)與鍵盤(輸入)。
BlockInput ( 標(biāo)志 )
參數(shù)
標(biāo)志 | 1 = 屏蔽用戶輸入 0 = 啟用用戶輸入 |
返回值
無(wú)
注意
若啟用了 BlockInput 則所有的 Alt 鍵將無(wú)法發(fā)送!操作系統(tǒng) | "BlockInput" 應(yīng)用結(jié)果 |
Windows 95 | 無(wú)效果。 |
Windows 98/Me | 用戶輸入將被屏蔽,連 AutoIt 也不能模擬輸入。 |
Windows NT 4 (未安裝 ServicePack 6) | 無(wú)效果。 |
Windows NT 4 (已安裝 ServicePack 6) | 用戶輸入將被屏蔽,但 AutoIt 能模擬大部分的輸入行為。 |
Windows 2000 | 用戶輸入將被屏蔽,但 AutoIt 能模擬大部分的輸入行為。 |
Windows XP | 用戶輸入將被屏蔽,但 AutoIt 能模擬大部分的輸入行為。但有例外情況,請(qǐng)看下面的說(shuō)明。 |
相關(guān)
Send
示例
If @OSVersion <> "WIN_98" And @OSVersion <> "WIN_ME" Then
BlockInput(1)
EndIf
Run("notepad")
WinWaitActive("無(wú)標(biāo)題 - 記事本")
Send("{F5}") ;插入時(shí)間及日期
BlockInput(0)