Skip to content

Instantly share code, notes, and snippets.

@sidola
Created June 6, 2014 08:20
Show Gist options
  • Select an option

  • Save sidola/9e7c626eeab6c673b65a to your computer and use it in GitHub Desktop.

Select an option

Save sidola/9e7c626eeab6c673b65a to your computer and use it in GitHub Desktop.
AHK - Send click to hidden window
PostClick(x, y, class, title)
{
lParam := x & 0xFFFF | (y & 0xFFFF) << 16
PostMessage, 0x201, 1, %lParam%, %class%, %title% ;WM_LBUTTONDOWN
PostMessage, 0x202, 0, %lParam%, %class%, %title% ;WM_LBUTTONUP
}
@nTelenty
Copy link
Copy Markdown

How to use it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment