blackman12 Posted March 22, 2010 Share Posted March 22, 2010 Özellikleri: - Fare ve klavyeden veri girişini engellemek - Fare ve klavyeden girilecek BAZI* verileri engelleyebilmek - Hex key desteği dışında AutoIT tipi key desteği (örn: {ESC} ) - Fare ve klavyeyi bloklarken sadece BAZI* verilere izin verebilme - ClassName'e göre bloklayabilme özelliği - Pencereye özel bloklama yapabilme özelliği * = Sizin belirlediğiniz tuş veya tıklar. Örnek1: #include <BlockInputEx.au3>;================== hWindows usage Example ==================HotKeySet("{ESC}", "_Quit");This will trigger an exit (on any window except the window of Notepad).Run(@WindowsDir & "\Notepad.exe", "", @SW_MAXIMIZE)WinWait("[REGEXPCLASS:Notepad.*]")$hNotepad_Wnd = WinGetHandle("[REGEXPCLASS:Notepad.*]")ControlSetText($hNotepad_Wnd, "", "", _ "Now try to input some keys in here..." & @CRLF & _ "Well, that's the idea, you can't, don't you?" & @CRLF & @CRLF & "");sadece notpad penceresi için sadece klavye girişlerini engelleme_BlockInputEx(3, "", "", $hNotepad_Wnd);This is only for testing, so if anything go wrong, the script will exit after 10 seconds.AdlibEnable("_Quit", 10000)While 1 Sleep(100)WEndFunc _Quit() ExitEndFunc[/CODE]Örnek 2: [CODE]#include <BlockInputEx.au3>;================== CLASSes usage Example ==================HotKeySet("{ESC}", "_Quit");This will trigger an exit;klavye girişlerini engeller fakat bazı girişleri serbest bırakır.;örneği burada nümerik tuşlar, "test" ifadesindeki karakterler, yukarı ve aşağı tuşları serbest bırakılmıştır._BlockInputEx(3, "", "[:NUMBER:]|[Test]|{UP}|{DOWN}");This is only for testing, so if anything go wrong, the script will exit after 10 seconds.AdlibEnable("_Quit", 10000)While 1 Sleep(100)WEndFunc _Quit() ExitEndFunc[/CODE]Orjinal Konu:[CODE]http://www.autoitscript.com/forum/index.php?showtopic=87735[/CODE]_BlockInputEx.au3 UDF:[CODE]http://www.mediafire.com/?xuy2gl5c4a4mfhdhttp://www.4shared.com/file/244687039/a319d97d/BlockInputEx.html[/CODE]Bu UDF'nin kullanıldığı bir program örneği Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.