Modifier and a Click

I fail in pressing 2 modifier keys and clicking. :oops:

	
if WithModifier is yes
	then 
		KeyDown Shift, CommandKey
		Click "here"
		KeyUp AllKeys
	else
		Click "here"
	end if

Depending on the handlers call parameter WithModifier which must be yes I need to click on the SUT (Mac OS X) a button while shift and command must be pressed.

I understand from the description that KeyDown seems to work with a keystroke, but it does not seem to work with a click, or am I am missing something here… :?

Thanks in advance…

The problem is that you are using “Shift” when what you need is “ShiftKey”.

Oh, my :roll:

Your are so right. Thanks. :slight_smile: