|
Post by mysillyusername on Nov 5, 2018 18:38:50 GMT
Here's my code:
1 | RUN ACTION | | | | DEFINE INTEGER VARIABLE | %INTEGER1% | %RANDOM%
2 | RUN ACTION | | | | DEFINE INTEGER VARIABLE | %INTEGER2% | %RANDOM%
3 | 1186 | 304 | 200 | Keypress My integer is %INTEGER1%.
4 | 1186 | 304 | 200 | Keypress My integer is %INTEGER2%.
5 | %INTEGER1% | %INTEGER2% | %RANDOM_1-2000% | Left Click Down
6 | %INTEGER1% | %INTEGER2% | %RANDOM_1-200% | Left Click Release
7 | RUN ACTION | | | | WAIT MILLISECONDS | %RANDOM_1-10000%
Furthermore, I'm trying to set the integer to a random number within a range, but I simplified it, trying to find the cause of the issue.
|
|
|
Post by mysillyusername on Nov 5, 2018 19:01:36 GMT
While I'm at it, is there any documentation that lists all of the commands? Surely there's a "mouseclick" instead of left click down and left click release. I need the down and release to be at the same location. Otherwise, it just drags windows around.
|
|
|
Post by Steve on Nov 5, 2018 21:33:40 GMT
Hi mysillyusername. The issue with your macro is that your syntax is incorrect. When adding conditions use the 'Add Condition' page. This will give you the correct syntax for the macro. Here is a macro like yours using RANDOM values. Line 1 I have added a WAIT between defines INTEGER1 and INTEGER2 to random. This is to ensure a true random value. Line 3 we do a LEFT CLICK without the down and release. This LEFT CLICK combines both the down and release. 1 | RUN ACTION | DEFINE INTEGER VARIABLE | %INTEGER1%::%RANDOM% | AND | 2 | RUN ACTION | WAIT MILLISECONDS | 100 | AND | 2 | RUN ACTION | DEFINE INTEGER VARIABLE | %INTEGER2%::%RANDOM% 2 | RUN ACTION | MESSAGE PROMPT | My integer1 is %INTEGER1% and my integer2 is %INTEGER2%.::Integer1 and 2 values::3 3 | %INTEGER1% | %INTEGER2% | %RANDOM_1-2000% | Left Click 4 | RUN ACTION | WAIT MILLISECONDS | %RANDOM_1-10000% Check out the event log when you are having issues with your macros. This screenshot is the event log after playing the macro above: No there is no one document that lists all the 'commands' other than conditions page www.turnssoft.com/conditions.html. The 'down and release' can be turned off under 'settings - recording options - disable drag and drop'. Hope this helps. Regards, Steve.
|
|