Skip to content

Instantly share code, notes, and snippets.

@TLMcode
Created April 26, 2016 07:42
Show Gist options
  • Save TLMcode/d321dc535b8a9fe02959865a96976c86 to your computer and use it in GitHub Desktop.
Save TLMcode/d321dc535b8a9fe02959865a96976c86 to your computer and use it in GitHub Desktop.
ClickCoords() full click sequence
ClickCoords( x, y, wT, ctrl = "", btn := "left" )
{
For Each, Msg in ( btn = "left" ? ( l := [ 1, 0, 2 ] ) : btn = "right" ? [ 4, 0, 5 ] : l )
PostMessage, % 0x20 Msg, 0x1, % x|y<<16, % ctrl, % wT
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment