Hi Refael
The problem is that this function SendKeys send information to the active windows. You need to be sure that it is the correct notepad. I suggest you use the process ID instead of process name (some like "Shell.AppActivate process.ProcessId").
Please check the information here about it.
Rodolfo Leitón
HP LR/PC Support
If you are customer you can try posting on our internal forums for more personalized support.
For LoadRunner here.
For Performance Center here.
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
If you found this information useful please leave a kudo.