So,I want to use the Thunder Applcation for my project , Though the AppleScript set a url to clipboar and it can auto download for me by Thunder.
1、I can found the scoll area of App entry.
2、But,I can’t get the scoll area element to next step。
So,I want to use the Thunder Applcation for my project , Though the AppleScript set a url to clipboar and it can auto download for me by Thunder.
1、I can found the scoll area of App entry.
What is the “Thunder” application? I can’t seem to find it
This is a chinese App,Chinese name is “Xunlei”,by the website (like https://www.xunlei.com ) can get it .
Can you highlite the area you want to get access to. I cant read chinese
Also is there a way to get the same result using the menus?
OK, so it seems you can’t click on the scroll area that pops up when you click the “+” button using AppleScript. You need to use a free program called ‘cliclick’.
You can download it here…
Here is a script to click it if ‘cliclick’ is installed.
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
local myWIn, myItem, mySize, myPos, i
tell application "System Events"
tell application process "Thunder"
set frontmost to true
delay 0.5
set myWIn to window "迅雷"
set myItem to button 6 of group 2 of (splitter group 1 of myWIn whose role description is "分离组")
click myItem
repeat with i from 10 to 0 by -1
if exists scroll area 1 then exit repeat
delay 0.5
end repeat
if i = 0 then return
set myItem to static text 1 of scroll area 1
set {mySize, myPos} to {size, position} of myItem
do shell script "/usr/local/bin/cliclick dc:" & ((item 1 of myPos) + (item 1 of mySize) div 2) & "," & ((item 2 of myPos) + (item 2 of mySize) div 2)
end tell
end tell