Здесь клик реализован тоже через SENDMESSAGE
GETSCREEN
IF_PIXEL_IN(0,0, $_xmax,$_ymax, 15198207,6248287,5400184,12447743)
SETTHREAD (t1,2)
SENDMESSAGE($_hwnd, 0x0201, 0x0001, $_return1 + ($_return2*65536))
WAITMS(30)
SENDMESSAGE($_hwnd, 0x0202, 0x0001, $_return1 + ($_return2*65536))
WAITMS(10)
ELSE
SETTHREAD (t1,1)
WAITMS(30)
END_IF
THREAD(t1,0)
SUB(_KEYBOARD_EVENT, $event, $key)
SWITCH($event)
CASE("KEYPRESS")
SENDMESSAGE($_hwnd, 0x0100, $key, 0)
WAITMS(30)
SENDMESSAGE($_hwnd, 0x0101, $key, 0)
CASE("KEYDOWN")
SENDMESSAGE($_hwnd, 0x0100, $key, 0)
CASE("KEYUP")
SENDMESSAGE($_hwnd, 0x0101, $key, 0)
END_SWITCH
END_SUB
_KEYBOARD_EVENT("KEYDOWN", #A)
WAIT(1)
_KEYBOARD_EVENT("KEYUP", #A)
WAIT(1)
_KEYBOARD_EVENT("KEYDOWN", #D)
WAIT(1)
_KEYBOARD_EVENT("KEYUP", #D)
WAIT(1)
_KEYBOARD_EVENT("KEYPRESS", #E)
WAIT(1)
END_THREAD