On 10/11/05 12:39 PM, "Todd Geist" <[EMAIL PROTECTED]> wrote:

> Thanks Again Ken!
> 
> On 10/11/05 10:25 AM, "Ken Ray" <[EMAIL PROTECTED]> wrote:
> 
>> Well, you could constantly poll for the frontmost application process on OS
>> X using AppleScript, and then set the style of the window to 'system' only
>> when a particular app was in front, and to 'palette' all the other times.
> 
> Will constantly poll have an impact on the performance of the stack?

Not on the stack, but on the overall system, depending on how tight a "loop"
you run. For example, if you can affort to wait a half-second before
bringing your palette up (500ms), you can significantly reduce the impact on
the system.
 
> Does anybody have an example of how to set up "polling"?

Here's a simple one:

on StartPolling
   PollProcesses
end StartPolling

on PollProcesses
  -- do your code for checking the processes, etc.
  send "PollProcesses" to me in 500 milliseconds
end PollProcesses

HTH,

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to