Jump to content
Sign in to follow this  

Problem with queued shortcut function

Recommended Posts

Lets say i have a key binded to shortcut function in my script.

So each time i press for example "a" it will put this in message queue. The problem is that sometimes this function will slow down and will not process fast enough. Which causes delays and on the end it will just apply every key press-function which you can imagine doesnt look very pretty with delays.

What i would prefer is that instead putting this function in queue my script just ignores the message if the function isnt run fast enough but i have no idea how to do this.


        ;While _IsPressed("11") Or _IsPressed("56")
            ;ConsoleWrite("! WAITING FOR ^v RELEASE!" & @LF)

        ;While _IsPressed("23")
            ;ConsoleWrite("WAITING FOR END FREEDOM..." & @LF)
        ;   Sleep(10)


This is the code that can cause delays because i am waiting for shift and ctrl key releases. If i dont do this however it will sometimes just block my app and cause a global freeze(if it gets pressed fast enough)

This key presses have to be fast though so i am looking for some compromise with windows here to have it fast as possible but without any hogs?

Edited by Aktonius

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...