clipboard extension

Kevin Miller kevin at runrev.com
Tue Apr 9 09:16:01 EDT 2002


On 7/4/02 11:35 pm, Troy Rollins <troy at rpsystems.net> wrote:

>> How is it possible to accomplish this?  There must be
>> a way, as there are a ton of clipboard extension
>> programs that do just that; they are usally located in
>> the system tray, when running, I don't know if this
>> has anything to do with it or not.
> 
> Intercepting events system wide is generally not possible for something
> which is run as a program process. Rev is doing this presumably by
> trapping the keyboard command before it get's through to the system.
> However, if it is not the current frontmost application, it never gets
> the keystrokes to trap.
> 
> I believe it was Dar, who earlier in this list discussed making Rev apps
> a "service" on Windows. Implementation at this level may give you what
> you are looking for - I haven't done it, so I'm not sure.

You can continue to check what keys are down in the background using
Revolution by using the keysDown() function or the commandKey() / other
function key functions.  I'm not sure what you would use this for, but it
can be done.  For example:

on mouseUp
  send "checkKeys" to me in 10 milliseconds
end mouseUp

on checkKeys
  put keysDown() into fld 1
  send "checkKeys" to me in 10 milliseconds
end checkKeys

Kind regards,

Kevin

Kevin Miller <kevin at runrev.com> <http://www.runrev.com/>
Runtime Revolution Limited - The Solution for Software Development
Tel: +44 (0) 870 747 1165.  Fax: +44 (0)1639 830 707.





More information about the use-livecode mailing list