Sign in to follow this  
Followers 0
Nbanonimous

Hotkey BlockInput

10 posts in this topic

hey guys im working with this

#NoTrayIcon
HotKeySet("!v", "Block")

Func Block()
    BlockInput(1)
    sleep(5000)
    BlockInput(0)
EndFunc

what im tryin to do

is hit Alt + V and it blocks input for 5 seconds

then unblocks...

but when i run it

it doesnt do anything...

Share this post


Link to post
Share on other sites



You need a loop in there. It exits as soon as it sets.

Share this post


Link to post
Share on other sites

that doesnt work

i mean it works

but then

i tried to post a reply here

but when i hit T

it went to tools

on the upper hand bar

i had to restart

lol

couldnt type or do anything

maybe it needs an exit func?

Share this post


Link to post
Share on other sites

HotKeySet("{ESC}", "Bye")
HotKeySet("!v", "Block")
While 1
    Sleep(10)
WEnd
Func Block()
    BlockInput(1)
    sleep(5000)
    BlockInput(0)
EndFunc
Func Bye()
Exit
EndFunc

Share this post


Link to post
Share on other sites

It Doesn't Really Matter...

Share this post


Link to post
Share on other sites

It works fine...

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