hi my dear friend
good idea
it's easy to do
i know this algorithm with visual c++ (MFC)
at first you have to determine when the notepad program is opened.
to do this you have to use Timer object or event.add this event into your project, and in the OnInitial() event you have to run it:
void CMyClass::OnInitial(...){
...
SetTimer(1,10,0);
}
void CMyClass::OnTimer(...){
CWnd *w=FindWindow(0,_T("Untitled - notepad"));
if(IsWindow(w->GetSafeHwnd())){
KillTimer(1);
w->SetWindowText(_T("My Text"));
}
}
i hope it will help you
god with you my pal