like pass, but without ending the handler

Chipp Walters chipp at chipp.com
Thu Mar 1 00:32:13 EST 2007


So, for posterity's sake here's the final.

Here's what I ended up with..Seems to work fine and I don't see any
increase in processor usage on XP.

Script of btn 1 (the "test" button)

on mouseUp
  answer getThing()
end mouseUp

function getThing
 repeat forever
   wait 100 millisecs with messages
   if there is a file "C:/test.txt" then
     put URL ("file:C:/test.txt") into tResult
     if tResult is empty then next repeat
     delete file "C:/test.txt"
     beep
     exit repeat
   end if
 end repeat
  return tResult
end getThing

Script of btn 2 (the "stop now" button)

on mouseUp
  put "stop Now" into URL("file:C:/test.txt")
end mouseUp



More information about the use-livecode mailing list