Simulate keypress in x86 assembly
Posted on 2006-06-09
I am working on a program which runs in a "DOS" command prompt window. I would like a function that can toggle the fullscreen mode of this window, like pressing Alt+Enter. I think that embedding a few lines of assembly in my code is probably the best way to do this. The easiest way would probably be to simply emulate an Alt+Enter, but if there is an easier way, that is fine also (I read something about an "int 2f" that may work also). Does anybody have some sample code that can help me accomplish this?