Hey I am trying to write a script that will click an area on the screen with the command key held down.
This doesn’t seem to hold down that the command key long enough to actually command click. Here is what I got
repeat
tell application "System Events"
tell application "World of Warcraft" to activate
tell application "Extra Suites"
ES move mouse {519, 557} with relative
ES click mouse with command
end tell
end tell
delay (random number from 3 to 4)
end repeat
This is sort of what I am after, but it doesn’t work.
repeat
tell application "System Events"
tell application "World of Warcraft" to activate
tell application "Extra Suites"
ES move mouse {519, 557} with relative
key down command
ES click mouse
key up command
end tell
end tell
delay (random number from 3 to 4)
end repeat
Thanks