Can't make keystroke " " into type refer

Hi,

I am having trouble with the script below.

on «event coVScliI» theObject
	tell application "World of Warcraft" to activate
	delay 10
	tell application "Log me in"
		set keys to content of text field "user" of window "main"
		tell application "World of Warcraft" to activate
		tell application "System Events" to keystroke keys
		delay 1
		keystroke tab
		delay 1
		set keys to content of text field "pass" of window "main"
		tell application "World of Warcraft" to activate
		tell application "System Events" to keystroke keys
	end tell
end «event coVScliI»

It just keeps coming up with “Can’t make keystroke " " into type refer” what is causing this annoying error!
Also out of intrest, is there some way I can make the text in the “pass” box into asterisks ?
Thanks
Valmilu

(This is an app to log me into WoW)
Sad isn’t it.

Hi,

I think, the syntax should be

...
activate application "World of Warcraft"
tell application "System Events" 
	tell process "World of Warcraft"
		keystroke keys
		delay 1
		keystroke tab
		delay 1
	end tell
...