Is this even possible? The more I have experimented, the more it
SEEMS that DOS reading those keypresses is done at the hardware level only,
meaning that they cannot be simulated by software.
I have tried stuffing the keyboard with the routine from QPP with
CHR$(3), I have tried setting bit 7 at adx 0040:???? (don't remember
the offset), I have tried invoking INT 1bh. None of these have programmatically
caused the test EXE to terminate. And, yes, I have ensured that
$OPTION CNTLBREAK ON is in the INC file. Also, after trying those
3 methods, I did an S$ = INKEY$ to force one of the DOS services
that checks for CNTRL-C (unless the PB/DOS function does not use such
a service).
The reason I want to do this is because I currently have a PB/CC app
that SHELL's to a DOS app (the DOS app was not written by me). With this
setup, I can directly press the CNTRL-C, and the DOS app appropriately
aborts. However, I wish to port the PB/CC app over to a GUI app with
PB/Win. Therefore, the GUI app would have to explicitly handle
the CNTRL-C for the DOS app, as the DOS app would be run "silently", meaning that
it would not respond to keypresses. I want to do it this way so I can keep
the GUI dialog in the forefront, to be used to show the status
of the progress through all the files that it processes.
Any ideas, anybody?
------------------
SEEMS that DOS reading those keypresses is done at the hardware level only,
meaning that they cannot be simulated by software.
I have tried stuffing the keyboard with the routine from QPP with
CHR$(3), I have tried setting bit 7 at adx 0040:???? (don't remember
the offset), I have tried invoking INT 1bh. None of these have programmatically
caused the test EXE to terminate. And, yes, I have ensured that
$OPTION CNTLBREAK ON is in the INC file. Also, after trying those
3 methods, I did an S$ = INKEY$ to force one of the DOS services
that checks for CNTRL-C (unless the PB/DOS function does not use such
a service).
The reason I want to do this is because I currently have a PB/CC app
that SHELL's to a DOS app (the DOS app was not written by me). With this
setup, I can directly press the CNTRL-C, and the DOS app appropriately
aborts. However, I wish to port the PB/CC app over to a GUI app with
PB/Win. Therefore, the GUI app would have to explicitly handle
the CNTRL-C for the DOS app, as the DOS app would be run "silently", meaning that
it would not respond to keypresses. I want to do it this way so I can keep
the GUI dialog in the forefront, to be used to show the status
of the progress through all the files that it processes.
Any ideas, anybody?
------------------
Comment