How can I pass an Event (click, doubleclick, etc.) parameter to a handler?
I have tried:
to myHandler event, imageName
event imageName
end myHandler
But this fails as it is not interpreting the parameter event as an event (for example Click).
Thanks in advance,
Geremy
Hi Geremy–
You’ll need to use the do command in order to make this work. Right now, Eggplant is interpreting the parameters as strings when only one of them should be. The do command is your direct link to the SenseTalk compiler. What you’ll want to do is something like this:
to myHandler event, ImageName
put event&&ImageName into theCommand
do command
end myHandler
Hope this helps!
Allen