News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Click on cmd.exe running.

Started by Fraile, June 04, 2022, 07:59:42 PM

Previous topic - Next topic

Greenhorn

You must zero-out the whole structure(s) once before filling it.
I would send it as an array of structures. And you should send the key strokes only if the console window you are looking for is activated and has the keyboard focus, so check the return value of SetForegroundWindow.

Didn't my example work for you ?
Kole Feut un Nordenwind gift en krusen Büdel un en lütten Pint.

Fraile

Sorry, I didn't get to test it, because I already got the sendinput function working. But I try what you're telling me.

Thank you very much.