Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Clipboard Automation

From: petr:krenzelok:trz:cz at: 13-Dec-2004 11:49

Allen Kamp wrote:
>For clipboard automation, > >I need to monitor the Windoze clipboard / keyboard activity such that >after a user types ctlr+v, I put the next item (from a block) onto the >clipboard. > >Problem is, Rebol won't be the target for the pasting activity, so how >can I detect the key event from rebol? (I will be using rebol/command) >
Hi Allen, well, maybe some Win32 API functions would help, but is it generally a good idea to mess with clipboard that way? If I unserstand it correctly, you want Rebol to become some kind of hidden app, which will catch OS keyboard events? The hook would have to have pretty high priority, it would have to happen even before keayboard event reaches target app/window. The problem is - what is user swithces to e.g. Photoshop and wants to use clipbard in a regular way? Will you influence it from Rebol? How will you distinguish? From what I have done - we have one SAP transaction, where users do use clipboards. They first hilite the grid, put data into clipboard. The problem is, that they need to scroll in grid, because there is many rows, so they repeat operation three or more times. It was annoying for them to constantly switch here or there, so I did small app in rebol. They put data in clipboard, press button "add-2-clipboard", rebol clears lipboard etc. Once they are finished, I do some modification to data etc. and prepare it for its insertion into the target document ... -pekr-