- Joined
- Oct 6, 2010
- Messages
- 47
- Reaction score
- 0
- Points
- 6
- Your Mac's Specs
- iMac 24" 2.66 GHz C2D 4GB RAM Nvidia GeForce 9400 | iPhone 3GS | TV2
Just to be clear, my primary question is if it's possible with Applescript to do this for someone who's not a professional programmer. If it is, and anyone can impart some of their relevant knowledge on how to do it to me I'd be most grateful.
Many games on the internet make use of the Flash plug in. Now with Applescript it's possible to simulate virtual mouse clicks in Safari thus:
repeat 10 times
delay 1
tell application "System Events"
tell application process "Safari"
click (click at {1266, 198})
end tell
end tell
end repeat
That's straightforward enough, but it doesn't seem to work if you're trying to click within a Flash browser plugin instance. So I changed the script. I went to File --> Open dictionary and tried replacing Safari with things like "Flash Player" etc. And I recompiled and ran it. These attempts fared no better than the first.
So is there a way to do this?
Many games on the internet make use of the Flash plug in. Now with Applescript it's possible to simulate virtual mouse clicks in Safari thus:
repeat 10 times
delay 1
tell application "System Events"
tell application process "Safari"
click (click at {1266, 198})
end tell
end tell
end repeat
That's straightforward enough, but it doesn't seem to work if you're trying to click within a Flash browser plugin instance. So I changed the script. I went to File --> Open dictionary and tried replacing Safari with things like "Flash Player" etc. And I recompiled and ran it. These attempts fared no better than the first.
So is there a way to do this?