in reply to Re^2: Manually Select a Windows Window
in thread Manually Select a Windows Window

No way to have Perl wait for a mouse click on any window and then send the data?

See GetAsyncKeyState function (Windows) and https://metacpan.org/pod/Win32::GuiTest::Examples#eg/keypress.pl