I have a program that is supposed to switch to the game pacman during it. I've got it to launch the pacman program, but it stays in revolution and doesn't switch windows to pacman (this is important because it's for an experiment). Here is my code:
Code: Select all
on pacmanproc
put the text of field "Instructions5" of card "Materials" into field "Field" of card "Instructions"
go to card "Instructions"
wait until gPressed1 is true with messages
put false into gPressed1
go to cd "blank"
do fld "activatePacMan" of cd "materials" as applescript
wait pacmantime seconds with messages
do fld "activateRev" of cd "materials" as applescript
end pacmanproc
tell application "Pacman"
activate
end tell
Any helpful hints for me?
Thanks!
laurpapo