Hi. I have written a QBasic program which captures the input of my
touch screen through COM1 and it works well. The touch screen driver
is loaded prior to starting QBasic and then running the basic program.
The data INPUTS through COM1 gives me the relative location of where I
touched the screen.
When I run the basic program with PowerBASIC the data INPUT$ through
COM1 is no longer represented of where I touch the screen.
Here is what the code looks like for QBasic, and the data from this
corresponds to where I touched the screen.
COM(1) ON
ON COM(1) GOSUB ReadCom
OPEN "COM1:9600,N,8,1,CS0,DS0,CD0,OP0,RS,RB4" FOR INPUT AS #1
Here is what the code looks like for PowerBASIC.
$COM 4
ON COM(1) GOSUB ReadCom
COM(1) ON
OPEN "COM1:9600,N,8,1,CS0,DS0,CD0,RS" AS #1
I have tried using the SHELL feature to load the touch screen
driver while in the PowerBASIC program, which it does successfully, but
still the results are not there. If I load the driver after
executing OPEN "COM1..." then there is no recognized input on
COM1. If I load it before OPEN "COM1..." I get the same response
as though I loaded the driver before starting PowerBASIC.
What do I need to consider under PowerBASIC that is different
QBasic? No errors are detected.
Thank you,
Gary
------------------
touch screen through COM1 and it works well. The touch screen driver
is loaded prior to starting QBasic and then running the basic program.
The data INPUTS through COM1 gives me the relative location of where I
touched the screen.
When I run the basic program with PowerBASIC the data INPUT$ through
COM1 is no longer represented of where I touch the screen.
Here is what the code looks like for QBasic, and the data from this
corresponds to where I touched the screen.
COM(1) ON
ON COM(1) GOSUB ReadCom
OPEN "COM1:9600,N,8,1,CS0,DS0,CD0,OP0,RS,RB4" FOR INPUT AS #1
Here is what the code looks like for PowerBASIC.
$COM 4
ON COM(1) GOSUB ReadCom
COM(1) ON
OPEN "COM1:9600,N,8,1,CS0,DS0,CD0,RS" AS #1
I have tried using the SHELL feature to load the touch screen
driver while in the PowerBASIC program, which it does successfully, but
still the results are not there. If I load the driver after
executing OPEN "COM1..." then there is no recognized input on
COM1. If I load it before OPEN "COM1..." I get the same response
as though I loaded the driver before starting PowerBASIC.
What do I need to consider under PowerBASIC that is different
QBasic? No errors are detected.
Thank you,
Gary
------------------
Comment