07-04-2012, 05:31 PM
(This post was last modified: 07-04-2012, 05:32 PM by Shridevi.Salagare.)
Please try below code -
then go to the pane where you want to paste and do
("Object where you want to paste.")Type micCtrlDwn + "V" + micCtrlUp
Make sure that all the other notepads are closed when you execue this ..As if more notepads are open it will not be able to recognize the object.
Code:
Create objFSO = CreateObject("Scripting.FileSystemObject")
Systemutil.Run "Path of the notepad where its stored"
Window("Notepad").WinEditor("Edit").Type micCtrlDwn + "a" + micCtrlUp
Window("Notepad").WinEditor("Edit").Type micCtrlDwn + "C" + micCtrlUp
("Object where you want to paste.")Type micCtrlDwn + "V" + micCtrlUp
Make sure that all the other notepads are closed when you execue this ..As if more notepads are open it will not be able to recognize the object.