Il focus è sul notepad quando viene richiamata la SendKeys?
Amaro C++, il gusto pieno dell'undefined behavior.
Regole del Forum