Forum Discussion
Charles_Liao
8 years agoNew Contributor
Hello, AlexxeyK
I'm new about TC. And I have the same requirement, and I try to write a PressMouse sub in a script, but I get a error when I try. As picture shown below. How should I correct it?
Thanks!
tristaanogre
8 years agoEsteemed Contributor
First of all... this thread is 7 years old... Might be better to have posted your own question since there is no guarentee, after 7 years, that the original people are still around.
That said... Since you're using the Desktop object MouseDown method, you have the wrong number of parameters. See https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/desktop/mousedown-method-desktop-object.html
Remove the ms parameter and you should be good.