问题
Im trying to make a follow/unfollow bot for Depop. Here is what i got so far.
tell application "Safari"
activate
end tell
set Username to display dialog "What is your Depop username?" default
answer ""
set Username to text returned of the result
tell application "Safari"
activate
open location "https://www.depop.com/" & Username
delay 5
end tell
tell application "System Events"
tell process "Safari"
click at {350, 305} -- {from left, from top}
click at {350, 305} -- {from left, from top}
click at {1038, 407} -- {from left, from top}
click at {1038, 482} -- {from left, from top}
delay 1
end tell
end tell
I'm trying to make it so it clicks follow and then in a different script it presses unfollow. I'm struggling with how to make it scroll down to click follow/unfollow. Also, if anyone has any ideas on how to make it more efficient then please let me know.
来源:https://stackoverflow.com/questions/51688867/how-to-scroll-down-on-applescript