01-30-2006 06:55 AM
01-31-2006 05:18 AM
01-31-2006 06:26 AM
Thanks, tst
It work perfect.
02-10-2006 02:42 AM
02-10-2006 06:03 AM
02-10-2006 06:31 AM
02-10-2006 06:58 AM
@Arno Euteneuer wrote:
I then check whether the flag is set AND the char is "v" or "V"...
That's why I used the scancode which identifies the "V" key (at least in XP).
BTW, a better way might be to detect the key down event for the target control. That way you would need to select, copy, select where to paste and paste. That seemed to have been the original idea I had when I did the example because the EditPos property is taken from the target table. That way, you won't have to bother with flags and such.
If you use the Clipboard VIs which are floating around, you could probably even do this through the clipboard and get data from e.g. Excel.
02-10-2006 07:30 AM
I would like to make one correction - it occured to me that the scan code is probably different for different keyboards (if I understand the help file correctly) in which case checking for the ASCII values is the right way to go.
@tst wrote:
@Arno Euteneuer wrote:
I then check whether the flag is set AND the char is "v" or "V"...
That's why I used the scancode which identifies the "V" key (at least in XP).
02-10-2006 07:37 AM
I recognized that but was unsure about on what the scancode may depend (hardware, OS ?). But maybe you're right and this is the easier implementation.That's why I used the scancode which identifies the "V" key (at least in XP).
BTW, a better way might be to detect the key down event for the target control. That way you would need to select, copy, select where to paste and paste. That seemed to have been the original idea I had when I did the example because the EditPos property is taken from the target table. That way, you won't have to bother with flags and such.
If you use the Clipboard VIs which are floating around, you could probably even do this through the clipboard and get data from e.g. Excel.