[comp.sys.mac.hypercard] Faking out commandKey

ressler@cme-durer.ARPA (weirdo) (08/18/88)

Does any one know how to fake out hypercard to think that the 
user is holding down the commandKey when in fact he isn't.  
This would enable you, say in a field script, to obtain a word or
text and fire off scripts in buttons or other places using that
text.

The following script works but forces the user to hold the command
key down and as an additional side effect the msg window pops up.

on mouseUp
	if the commandKey is down then
		put msg into butname
		-- determine is butname is a valid button name
		repeat with count = 1 to the number of buttons
			if butname = the short name of button count then
				send "mouseUp" to button butname
			else
				exit mouseUp
			end if
		end repeat
	end if
end mouseUp

Also is there any way to disable (temporarily) the msg window from
popping up.

Thanks, I'll repost if I get an answer

Sandy Ressler
ressler@cme-durer.arpa