المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How can I paste data to other windows (who ever is accepting) ? [modified]



C++ Programming
04-03-2009, 08:01 AM
When I click a hot key combination (Ctrl+Shift+P) my program do copy some text to the clibboard,

So I can paste it to any window by holding Ctrl+V

Now I like to automate this and be able to do the Ctrl+V programatically,

Lets assume I just want to paste just anything to other windows - so I can get started,



I have tried this, but I guess I'm missing something:

SendMessage(WM_PASTE, 0,0);

also tried:

BroadcastSystemMessage(BSF_POSTMESSAGE | BSF_IGNORECURRENTTASK,
BSM_ALLCOMPONENTS,
WM_PASTE,
(WPARAM)NULL,
(LPARAM)NULL);


I'd like to broadcast a "paste" message (or "Ctrl+V") so I will not have to find the current active window and get its focus,


Any suggestions ?

Best Regards - Yovav Gad
CEO and founder of MicroMighty, Inc.

modified on Thursday, April 2, 2009 11:58 PM