adamgal Posted April 20, 2005 Posted April 20, 2005 Is there a way to block a certain key from a certain window?
zcoacoaz Posted April 20, 2005 Posted April 20, 2005 You can block a key like this HotKeySet ( "a", "null" ) Func null() ; EndFunc Sleep ( 2000 ) so to make it only be blocked from a certain window we do this HotKeySet ( "a", "apressed" ) Func apressed() If Not WinActive ( "Some window" ) Then HotKeySet ( "a" ) Send ( "a" ) HotKeySet ( "a", "apressed" ) EndIf EndFunc Sleep ( 2000 ) Replace "Some window" with the correct window you want to block the key from [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font]
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