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 dothebeepCode: 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 mouseupCode: Select all
on mouseup
  answer "Now you will hear a sound!"
  pass mouseup
end mouseup .  Sorry about the constant nagging for answers, but give me a 2 week 3 hour daily video crash course for 100 euros and I would have jumped at it, pity that some of us are priced out of the valuable tuition that I have read in my emails, I would have joined, but for the.....
 .  Sorry about the constant nagging for answers, but give me a 2 week 3 hour daily video crash course for 100 euros and I would have jumped at it, pity that some of us are priced out of the valuable tuition that I have read in my emails, I would have joined, but for the..... 