Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.
drag from point to point
drag from point to point with key1
drag from point to point ¬
with key1, key2
drag from point to point ¬
with key1, key2, key3
The drag
command simulates the user dragging the mouse manually (except that you must use the with shiftKey
option in order to select text in a field). with key
options specify combinations of the commandKey,
the optionKey,
and the shiftKey,
simulating the user holding down the key or keys while dragging. on mouseUp
set the cantModify of this stack to true
show bkgnd field "Demo Field"
show card picture
dragChart "13,184,98,268",70 -- Pile One
dragChart "100,184,185,268",133 -- Pile Two
dragChart "185,184,270,268",93 -- Pile Three
dragChart "270,184,355,268",140 -- Pile Four
dragChart "355,184,440,268",175 -- Pile Five
choose browse tool
wait 50
hide card picture
hide bkgnd field "Demo Field"
set cantModify of this stack to false
end mouseUp
on dragChart theRect, theHeight
put item 1 of theRect into theLeft
put item 2 of theRect into theTop
put item 3 of theRect into theRight
put item 4 of theRect into theBottom
choose select tool
set the dragSpeed to 0
drag from theLeft,theTop to theRight,theBottom with optionKey
put round((theRight - theLeft)/2 + theLeft) into locH
put round((theBottom - theTop)/2 + theTop) into locV
doMenu "opaque"
set the dragSpeed to 200
drag from locH,locV to locH,(locV - theHeight) ¬
with optionKey,commandKey
end dragChart
91,303
"91,303"
"30" & "," & "100"
the clickLoc
AppleScript DefinitionAn expression that evaluates to a specific screen location, in the form of a list with two integer elements. For example:cmdKey
commandKey
optionKey
shiftKey
In AppleScript, one of the following:
command key
option key
shift key
Commands
Version 0.7b1 (March 24, 2022)