ms
New Member
Posts: 3
|
Post by ms on Jul 1, 2020 5:14:19 GMT
Hi, I'm new to mini mouse macro, so sorry if this is a dumb question.
As I loop through my macro, the x,y coordinates change and I'm bringing them in on the %CLIPBOARD% as 23 | x | y | 1000 | Left Click
So for a given cycle in the macro, I know the x, y coordinates that I want mouse to click on a website, but when I do the command below, it seems too quick for site to recognize the click. 23 | 259 | 509 | 100 | Left Click
So, I'd was thinking that maybe in the end I need something like:
23 | 259 | 509 | 100 | Left Click Down 24 | 259 | 509 | 100 | Left Click Release I'm thinking to bring in via clipboard but without the left click part and then append that with a string variable, as shown below, but it's not working. i.e. %CLIPBOARD% contains 23 | 259 | 509 | 100 |
Is there some way to combine the %STRING% variable with %CLIPBOARD% command? I was trying the following but running into errors: 1 | RUN ACTION | DEFINE STRING VARIABLE | %STRING%::Left Click Down 2 | RUN ACTION | DEFINE STRING VARIABLE | %STRING1%::Left Click Release %CLIPBOARD% | %STRING% %CLIPBOARD% | %STRING1%
Thanks, and sorry for the poor description!
|
|
|
Post by Steve on Jul 1, 2020 10:05:18 GMT
Hi, Welcome to the forum and no there are no dump questions here. As I loop through my macro, the x,y coordinates change and I'm bringing them in on the %CLIPBOARD% as 23 | x | y | 1000 | Left Click
So for a given cycle in the macro, I know the x, y coordinates that I want mouse to click on a website, but when I do the command below, it seems too quick for site to recognize the click. 23 | 259 | 509 | 100 | Left Click Have you considered using an IF condition to detect when you might need to click? Maybe PIXEL Range ( www.turnssoft.com/conditions.html#pixelrange) or PIXEL Color www.turnssoft.com/conditions.html#pixelcolor)? Some of these threads might help minimousemacro.proboards.com/thread/229/get-color-sample-pixel-operation, minimousemacro.proboards.com/thread/180/pixel-color-whilst-running-infinite, minimousemacro.proboards.com/thread/209/scan-pixel-line-click-change. I'm thinking to bring in via clipboard but without the left click part and then append that with a string variable, as shown below, but it's not working.
i.e. %CLIPBOARD% contains: 23 | 259 | 509 | 100 |
Is there some way to combine the %STRING% variable with %CLIPBOARD% command? I was trying the following but running into errors: 1 | RUN ACTION | DEFINE STRING VARIABLE | %STRING%::Left Click Down 2 | RUN ACTION | DEFINE STRING VARIABLE | %STRING1%::Left Click Release %CLIPBOARD% | %STRING% %CLIPBOARD% | %STRING1% I don't think this will fix your timing issue. If that is the main problem. I'd look at addressing why your click's are too quick for the site to recognize the click and add some logic to slow them down.
|
|
ms
New Member
Posts: 3
|
Post by ms on Jul 1, 2020 16:53:04 GMT
Thank you for a prompt response, I appreciate it.
1. I am coming to the conclusion that the Left Click speed is not my problem, but how to execute a command that is in the clipboard. i.e, I get an error message when trying to execute a line of code that says: %CLIPBOARD% When the contents of the clipboard are shown below. 23 | 259 | 509 | 100 | Left Click
2. I think your suggestion on Pixels won't really help as I am doing some Math in Excel, and it tells me where to click next in x, y coordinates. My struggle is getting those x,y coordinates back into the macro so that those coordinates can be clicked on the website.
3. I actually ended up in this pickle because I tried several IF statements, intending for only 1 of 3 to be true and activate the commands within that one wing. However, my IF statement programming is iffy (pardon the pun) and it seems to execute all 3 IF statements. See code below. I was expecting it to only go into the middle wing 1. 1 | RUN ACTION | DEFINE STRING VARIABLE | %STRING%::0
2 | RUN ACTION | | | | MESSAGE PROMPT | %STRING%
* | Position 0
3 | IF | STRING VARIABLE | %STRING% | IS | 18 | GOTO MACRO LINE | 4 | ELSE | GOTO MACRO LINE | Position 1 |
4 | RUN ACTION | | | | MESSAGE PROMPT | in wing 0
* | Position 1
5 | IF | STRING VARIABLE | %STRING% | IS | 0 | GOTO MACRO LINE | 6 | ELSE | GOTO MACRO LINE | Position 2 |
6 | RUN ACTION | | | | MESSAGE PROMPT | in wing 1
* | Position 2
7 | IF | STRING VARIABLE | %STRING% | IS | 30 | GOTO MACRO LINE | 8 | ELSE | GOTO MACRO LINE | End |
8 | RUN ACTION | | | | MESSAGE PROMPT | in wing 2
* | End
If you have advice on how to get item 1 or 3 working, I'll take it!
|
|
ms
New Member
Posts: 3
|
Post by ms on Jul 1, 2020 22:04:13 GMT
I figured out my a work around. My IF statements work when I use a criteria that the %STRING% variable compares to TEXT CONTAINS rather than TEXT IS. I guess I have lots to learn on this, but I’m able to keep moving now.
Thanks, question closed.
|
|