Jump to content

Recommended Posts

Posted

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]

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...