Hi guys,
I constantly search the applescript forum for cool and inventive scripts
that I can incorporate into my own. I find Scripting fun because the results
are not only pleasurable but rewarding.  I would like to post a script that I
am very proud of and that I could not have written without this forum.   :lol: .
I use this script so people using my computer for a game server can
restart the game if it crashes. All they do is email me and poof they are
playing again. Please, if you have a script that you think is cool or inventive,
post it as a reply, I would love to see them and im sure that everyone else
would too!
p.s. this script uses extra suites (ES)
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
