rylsky.script
· 844 B · Text
Brut
on performClickSequence()
tell application "Sidekick" to activate
delay 1
tell application "System Events"
tell process "Sidekick"
set frontmost to true
-- Perform clicks at the specified coordinates
do shell script "/usr/local/bin/cliclick c:979,457"
delay 0.9
do shell script "/usr/local/bin/cliclick c:966,481"
delay 2.3
do shell script "/usr/local/bin/cliclick c:1671,647"
delay 3.2
end tell
end tell
end performClickSequence
-- Main loop
set clickCount to 0
repeat 500 times
performClickSequence()
set clickCount to clickCount + 1
-- Optional: Uncomment the next line if you want to see the current iteration count
-- log "Completed iteration " & clickCount
-- Check if script should stop (you can modify this condition as needed)
if clickCount ≥ 500 then
exit repeat
end if
end repeat
1 | on performClickSequence() |
2 | tell application "Sidekick" to activate |
3 | delay 1 |
4 | |
5 | tell application "System Events" |
6 | tell process "Sidekick" |
7 | set frontmost to true |
8 | |
9 | -- Perform clicks at the specified coordinates |
10 | do shell script "/usr/local/bin/cliclick c:979,457" |
11 | delay 0.9 |
12 | do shell script "/usr/local/bin/cliclick c:966,481" |
13 | delay 2.3 |
14 | do shell script "/usr/local/bin/cliclick c:1671,647" |
15 | delay 3.2 |
16 | end tell |
17 | end tell |
18 | end performClickSequence |
19 | |
20 | -- Main loop |
21 | set clickCount to 0 |
22 | repeat 500 times |
23 | performClickSequence() |
24 | set clickCount to clickCount + 1 |
25 | |
26 | -- Optional: Uncomment the next line if you want to see the current iteration count |
27 | -- log "Completed iteration " & clickCount |
28 | |
29 | -- Check if script should stop (you can modify this condition as needed) |
30 | if clickCount ≥ 500 then |
31 | exit repeat |
32 | end if |
33 | end repeat |