Thanks _wal_,
You are right, _sleep_ is bad because the sleep is made before that the
WshShell.SendKeys("^{F4}") is taken in account ! :-/

I have also tried to put "_^{F11}_" or "_^{F8}_" for the Escape. These
short cuts works well but it have no effect after having the little window for
the updated file :-/:-/

If you have any others idea :-P

Best regards ;-)

-- 
<http://forum.pspad.com/read.php?2,35816,35940>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem