Hello,
Welcome to AutoHotkey and this forum.
I would start with basics. The documentation is a great source of information. If you read the following page, you will learn a lot.
https://www.autohotkey.com/docs/v2/Hotkeys.htm
Your current script has a few problems. It remaps a key, which is not what you want. It means that
LButton acts like
Z. You want something completely different: you want
LButton to click the button like it usually does-- not like a remap-- and then wait, and then send another key.
Code: Select all
#Requires AutoHotkey v2.0
~LButton::Sleep(500), Send('z')
The tilde allows the hotkey itself to be sent first. The
Send function then sends another key. The page that I have cited refers to these and provides you with additional examples.