Hi guys,
Im writing an applescript for ghost recon and Gameranger.
Basically, when the multiplayer online game “crashes” this applescript
will restart the game on the “host” computer by using osX email rules.
The problem that i have encountered is that the script will restart
a room even if it hasn’t crashed. I need to make sure that if the
application “Ghost Recon” is running the applescript will not run.
Is that possible?
property theTicks : 200
selectMenuItem("GameRanger", 2, 1)
-----
on selectMenuItem(appl, theMenu, menuItem)
tell application "GameRanger" to quit
tell application "Extra Suites"
ES set screen resolution width 1024 height 768
ES pause theTicks
ES set volume 15
set mouseLoc to ES mouse location
ES move mouse {659, 337}
ES pause theTicks
ES click mouse
ES pause theTicks
ES pause theTicks
tell application "GameRanger" to activate
set mouseLoc to ES mouse location
ES move mouse {30, 15}
ES pause theTicks
ES click mouse
repeat theMenu times
ES type key "right arrow"
ES pause theTicks
end repeat
repeat menuItem times
ES type key "down arrow"
ES pause theTicks
end repeat
ES type key "return"
ES move mouse mouseLoc
ES type key "return"
ES pause theTicks
ES pause theTicks
ES pause theTicks
ES pause theTicks
tell application "Extra Suites"
ES pause theTicks
ES move mouse {720, 420}
ES click mouse
ES type key "return"
end tell
end tell
end selectMenuItem
It uses extra suites from www.kanzu.com