systan
asked on
detect_paste_event_in_windows_explorer
I_have_done_test_in_links, _but_didn' t_find_one _really_wo rking.
please_post_code_if_you_re ally_teste d.
eq;
messageBox.Show<"a_new_dro plist_past ed">
please_post_code_if_you_re
eq;
messageBox.Show<"a_new_dro
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
sorry, my keyboard at that time was bad.
>>Or to detect a paste commend?
yes, a drop file list, not a text or an image.
when it detects a paste command?, it messages "a new dropfile pasted"
As I said, I've test a lot of codes from the internet, but it doesn't work, and I hope someone here could bring up a good code for testing.
thanks
>>Or to detect a paste commend?
yes, a drop file list, not a text or an image.
when it detects a paste command?, it messages "a new dropfile pasted"
As I said, I've test a lot of codes from the internet, but it doesn't work, and I hope someone here could bring up a good code for testing.
thanks
ASKER
hard? impossible?
Maybe a file system watcher - I've not done this but I think that would be what you want to look at
ASKER
thanks, but it's not a system watcher.
it's just a plain detection when a paste event occur.
it's just a plain detection when a paste event occur.
As far as I know there isn't a 'paste event' as such. I think there is a WM_PASTE message passed to the recipient window and only to that window, what happens is then up to the recipient.
A system watcher should notify your app that files have been copied/moved - isn't that what you want to throw up a message box (perform your custom action) in response to ?
A system watcher should notify your app that files have been copied/moved - isn't that what you want to throw up a message box (perform your custom action) in response to ?
ASKER
>>WM_PASTE
yes, but it don't really work, probably works on text, but not on files to be pasted.
if you have tested some code that works during paste, I'll be glad to accept your comment as good.
I would like a sample output during paste time;
eq;
messageBox.Show("a_new_fil es_pasted" )
>>A system watcher should notify your app that files have been copied/moved
yes, really I'm sure I don't want this method and doesn't fit to my system, already tested.
yes, but it don't really work, probably works on text, but not on files to be pasted.
if you have tested some code that works during paste, I'll be glad to accept your comment as good.
I would like a sample output during paste time;
eq;
messageBox.Show("a_new_fil
>>A system watcher should notify your app that files have been copied/moved
yes, really I'm sure I don't want this method and doesn't fit to my system, already tested.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
>>What was not suitable about it?
Ohm, the system watcher.
I'm building an anti copy paste, anti drag and drop, if files pasted or drop on the right recorded path?, it accepts it. if the destination path is not registered on the database?, the drop or paste file will be denied.
So, using system watcher is useless, because it only notifies when a file was already created.
I hope you got that point.
Anyway if there is no such code that detects before paste, then I shall close this post later.
Actually I already have another option, and I know it will work.
thanks
Ohm, the system watcher.
I'm building an anti copy paste, anti drag and drop, if files pasted or drop on the right recorded path?, it accepts it. if the destination path is not registered on the database?, the drop or paste file will be denied.
So, using system watcher is useless, because it only notifies when a file was already created.
I hope you got that point.
Anyway if there is no such code that detects before paste, then I shall close this post later.
Actually I already have another option, and I know it will work.
thanks
ASKER
thank you
What do you want?
Do you want to know how to get the following code to work? messageBox.Show<"a_new_dro
Or how to do something with links in explorer? Or to detect a paste commend?