SHAHRAM Posted July 16, 2006 Share Posted July 16, 2006 I was wondering if there is a way to prevent a key (eg. ALT) to be pressed over an specific window (not completely). Link to comment Share on other sites More sharing options...
Emperor Posted July 16, 2006 Share Posted July 16, 2006 Blocks you from pressing 'a' if Notepad is active. AdlibEnable("CheckForWindow") While 1 Sleep(100) WEnd Func CheckForWindow() If WinActive("Untitled -") Then HotKeySet("a", "Nothing") Else HotKeySet("a") EndIf EndFunc Func Nothing() ;;; EndFunc Link to comment Share on other sites More sharing options...
SHAHRAM Posted July 16, 2006 Author Share Posted July 16, 2006 Blocks you from pressing 'a' if Notepad is active. AdlibEnable("CheckForWindow") While 1 Sleep(100) WEnd Func CheckForWindow() If WinActive("Untitled -") Then HotKeySet("a", "Nothing") Else HotKeySet("a") EndIf EndFunc Func Nothing() ;;; EndFunc thanx, that should do, it just didn't come to my mind for a sec Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now