Sign in to follow this  
Followers 0
TomCat

Disable/Enable one Key with an other?

4 posts in this topic

Some Question is it possible to disable and enable again {ENTER} with an other Key using an Funktion ?

And how to do this ?

Share this post


Link to post
Share on other sites



If you want to disable just one key use Hotkeyset and have the func do nothing for that key.

Share this post


Link to post
Share on other sites

What i will do is to disable the {ENTER} key during this sript run:

Func _start()
While 1;Repeat for ever....
Send($key1)
sleep($sleep1)
WEnd;Go back to top
        EndIf           
EndIf
EndFunc

and to enable it again if the script would stop or paused with a funktion link this

Func _Pause()
            $Paused = NOT $Paused
            While $Paused
                sleep(100)
            WEnd
    EndIf               
EndIf
EndFunc

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0