Jump to content

Hotkey pass through

Recommended Posts

I'm using the following as a "pass through" for hotkeys I have set for my app if my app is not active. However, it tends to be a little sluggish sometimes and was wondering if there was a better way of doing it.

Func View1()    

    If $WinActivityResult = 1 Then
        ;Main Function
        $ViewKey = WinGetTitle("")
        ControlSend($ViewKey, "", "", $Functions_Array[1][0])
        HotKeySet($Functions_Array[1][0], "View1")

Link to comment
Share on other sites

I think this could be the solution

You will need (beta and higher) to use that function


another way is for example (70 = F1) to use _IsPressed in your loop

If _IsPressed("70") And WinActive("Program Title") Then Function()

But it could be detected as a keylogger

Best regards,Emiel Wieldraaijer

Link to comment
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

  • Recently Browsing   0 members

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