Jump to content

You can make a function that does what you want, then map a key to that function. This example maps the F1 key to the function that does as you ask:

myFunction()
{
    Send {Esc}
    Send {Click}
}

^F1::myFunction()

This SHOULD work, but I would read up on the Autohotkey docs. The ones I used just now are Send and Functions.

Hope this helped!

Link to post
Share on other sites

I hate that notion, sometimes simplicity is way better than conventions. But only in cases like this, where you need a one-liner for a simple task.

 

But don't take this as a criticism of your code, there is nothing wrong with it. Just the teachers forget sometimes to explain to their students that even with functions/objects you can create an unreadable mess out of something simple as a "send {esc}{click}"

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

×