b32 #1 Could it be that is gets a keydown somehow ? Try Flushkeys() before waitkey() or else try delay 5000.