r/applescript • u/Idksupbois_urkool234 • Dec 29 '20
How to use apple script.
I am trying to make something that can multiply clicks using apple script. So I click once and then a certain Random amount of time later(between 2 variables) it has a 50/50 chance to click again, I don’t know if it is possible.
3
Upvotes
1
u/[deleted] Dec 29 '20
In pure Applescript, you need to target the particular process/application to receive the click. I'm not 100% on this but it did seem to be the case when I looked into this about a year ago. I ended up using the applescript to call an external program called "cliclick" which makes clicking and mouse moves easy.
random numbers:
set theRandomNumber to random number from 1 to 100if theRandomNumber > 50 then--clickend if1
u/htakeuchi Dec 29 '20
You have to create a variable that will choose a number at random between two values
So
Set randomNumberOptions to (random number from 1 to 100)
Then you can use that result to click
1
u/ThaMouf Dec 29 '20
I think I’m not sure I understand. You want to flip a coin at random time intervals? Sorry if I seem dumb. The question just for some reason, isn’t connecting in my head
0
u/[deleted] Dec 30 '20
[deleted] — view deleted comment