Random actions

Didar

Member
Hi. So I'm not sure if we already have this feature or not. So please let me know. How about to have a sets of actions and when we trigger it will choose randomly between them. For example I might need to have some random types of swipes on the screen when I trigger. Thanks :)
 

Didar

Member
Use Set Variable action -- Integer variable -- Random, and If -- Else if -- End if.
Hi. Thanks much for the reply. sorry I am not very good with this app and just a new user. would you please explain more? I did till "Random" and gave it 1 to 5. but not sure about the rest. how can use the generated integer as a parameter for another action for example swiping the screen?
 
Last edited:

Dm114

Well-known member
Hi. Thanks much for the reply. sorry I am not very good with this app and just a new user. would you please explain more? I did till "Random" and gave it 1 to 5. but not sure about the rest. how can use the generated integer as a parameter for another action for example swiping the screen?
It's up to you to describe/choose the specific action(s) you want to execute, according to the value of the random number.
:
A: IF Random_Number=1 THEN
A: action(s)1
A: ELSE IF Random_Number=2
A: action(s)2
A: ELSE IF Random_Number=3
A: action(s)3
:
:
(A: ELSE action(s) for Random_Number out of range) ←optional
A: ENDIF
 

Didar

Member
It's up to you to describe/choose the specific action(s) you want to execute, according to the value of the random number.
:
A: IF Random_Number=1 THEN
A: action(s)1
A: ELSE IF Random_Number=2
A: action(s)2
A: ELSE IF Random_Number=3
A: action(s)3
:
:
(A: ELSE action(s) for Random_Number out of range) ←optional
A: ENDIF
ok, thanks. I could make it work. now I can have for example 3 actions and choose randomly from them. so a new issue. there is a duration option in the gesture command. do we have access to these parameters? can I assign an integer to that parameter? so we can have a duration between 100 to 200 ms for example?
if I want to use the original random solution I should create 100 different actions which is frustrating. so it is very helpful if we can have access to the duration field..
 
Last edited:

Dm114

Well-known member
ok, thanks. I could make it work. now I can have for example 3 actions and choose randomly from them. so a new issue. there is a duration option in the gesture command. do we have access to these parameters? can I assign an integer to that parameter? so we can have a duration between 100 to 200 ms for example?
if I want to use the original random solution I should create 100 different actions which is frustrating. so it is very helpful if we can have access to the duration field..
You are right, it is not possible to assign a duration to gesture from a variable. As well as for (x,y) coordinates. Maybe you should post in 'Feature request' section.
Have you had a look at the 'System setting' action? Maybe it's possible to edit the default duration value... 🤔
 
Top