In the Button:
Code: Select all
on mouseUp
put "ugh" into fld "fieldA"
pass mouseup
end mouseUp
Code: Select all
on mouseUp
if the short name of the target is "button" then
put "also in here" into fld "fieldB"
end if
end mouseUp
chris
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
on mouseUp
put "ugh" into fld "fieldA"
pass mouseup
end mouseUp
Code: Select all
on mouseUp
if the short name of the target is "button" then
put "also in here" into fld "fieldB"
end if
end mouseUp
Code: Select all
on mouseup
dothebeep
end mouseup
command dothebeep
beep 3
end dothebeep
Code: Select all
on mouseup
send "dothebeep" to btn "B1"
end mouseup
OK, but your very first example dow not work because the button and the field are on the SAME hierachie level.but this paper did not tell me HOW to use the send in a PRACTICAL demonstration.
Code: Select all
on mouseup
play (specialfolderpath("desktop") & "/name of cool sound.wav")
end mouseup
Code: Select all
on mouseup
answer "Now you will hear a sound!"
pass mouseup
end mouseup