﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
757	Set defaults for MouseClick()'s x/y parameters	MrCreatoR <mscreator@…>	Jpm	"For now '''MouseClick()''' does not accepting default ('''-1''' or '''Default''' keyword) for ''x'' and ''y'' parameters. It is a problem when we need to set a ''clicks'' parameter and click by default in the mouse current position, so we also need to get current mouse position ('''MouseGetPos()''') before we can set a ''clicks'' param, here is an example:


{{{
$aMouse_Pos = MouseGetPos()
MouseClick(""Main"", $aMouse_Pos[0], $aMouse_Pos[1], 2)
}}}


Instead of doing just this:


{{{
MouseClick(""Main"", -1, -1, 2)

;or this...

MouseClick(""Main"", Default, Default, 2)
}}}

This last example will move the mouse to the upper left corner of the screen and double-click there :( - I excpecting the same results as with the first example, where the mouse will not move but just double clicks on the current position.


'''P.S'''
I am personaly not a big fan of Mouse* related functions, but sometimes it can help in few tasks, and also i think that i am speaking for other users as well, who use this funcs on daily basis :)


Thanks."	Feature Request	closed	3.3.1.0	AutoIt		None	Completed	MouseClick default position	
