Read the help file but it doesnt make me more wise.
ControlClick, x255 y152, My Document,2,,, NA
I want it to click in correct pos, window called My document, doubleclick. Am I wrong?
Controlclick - What am I doing wrong?
Re: Controlclick - What am I doing wrong?
You have the 2 in the wrong parameter. There may be other reasons why it doesn't work, but that could prevent it from finding your window.
Re: Controlclick - What am I doing wrong?
Thank you for the answer. How do I find out where to put it? I guess what you mean is I put it in the wrong comma section?boiler wrote:You have the 2 in the wrong parameter. There may be other reasons why it doesn't work, but that could prevent it from finding your window.
Re: Controlclick - What am I doing wrong?
Counting against the "original" ?Johana wrote:Thank you for the answer. How do I find out where to put it? I guess what you mean is I put it in the wrong comma section?boiler wrote:You have the 2 in the wrong parameter. There may be other reasons why it doesn't work, but that could prevent it from finding your window.
ControlClick [, Control-or-Pos, WinTitle, WinText, WhichButton, ClickCount, Options, ExcludeTitle, ExcludeText]
Re: Controlclick - What am I doing wrong?
Hello! This is what drives me insane. Cause in the example in the end of the help page, the pos is in the end with NA x000 y000BoBo wrote:Counting against the "original" ?Johana wrote:Thank you for the answer. How do I find out where to put it? I guess what you mean is I put it in the wrong comma section?boiler wrote:You have the 2 in the wrong parameter. There may be other reasons why it doesn't work, but that could prevent it from finding your window.
ControlClick [, Control-or-Pos, WinTitle, WinText, WhichButton, ClickCount, Options, ExcludeTitle, ExcludeText]
It doesn't make sense in my head so I get confused. Based on the help I should put commas where I don't use? So example:
Code: Select all
ControlClick [, x000 y000, My Dokument, WinText(What is wintext?, left, 2,,,
Re: Controlclick - What am I doing wrong?
It's really pretty straightforward. If you don't use a certain parameter, you leave it blank. You can't just put them in any order then follow it with a bunch of commas. Since you're not using WinText (description of what it is appears in the documentation), leave that blank, then put a comma in so you can add the next parameter, for which you would put "left" or leave it blank, then add a comma, then put your 2 for the ClickCount, etc.