Aaaaaaaa,so i was writing a Rubber ducky script involving twin duck firmware :C.
And the problem is very simple,basically when you insert the rubber ducky and it start injecting keystrokes,maybe in cmd, windows gets to recognize it as a mass storage after 5 so seconds and it automatically opens a popup window of the rubber ducky's sd card
and what happens is that you got automatically knocked out of the teminal or wherever you were typing in because now the activity switched to the popup.
Now: sure you can do some Atl+Tab thing returning back to terminal,but those 5 seconds are var