Jump to content

_blockinputex Udf


blackman12

Recommended Posts

Ö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)
WEnd

Func _Quit()
Exit
EndFunc[/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)
WEnd

Func _Quit()
Exit
EndFunc[/CODE]

Orjinal Konu:

[CODE]http://www.autoitscript.com/forum/index.php?showtopic=87735[/CODE]

_BlockInputEx.au3 UDF:

[CODE]http://www.mediafire.com/?xuy2gl5c4a4mfhd
http://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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...