Hello everyone. More keyboard stuffing problems. This is a very special dos voice mail program that i need to run scandisk and defrag on twice a month. I have most of the code written using the the popup timmer command. Let me cut to the chase. Using popup stuff I'm unable to get the F3 key and Chr$(13) to respond. This program uses the F3 key to bring up the command entry area then I write the word stop and Chr$(13). I don't know why it responds to the words but not to the keyboard scan code and the chr$(13) code. You can edit the word stop on their command line but F3 and the Enter key no longer work. It freeze's thoses key but the rest of the program works. The test code i've been playing with is very simple. I'm testing on a 386 test machine running Dos 6.22 and I'm using a program the responds to F10.
? "TSRDEMO Batch # 3 Started at ";time$
dummy& = SETMEM(-700000)
POPUP TIMER 400 'pop-up in 21 seconds
'once the time has passed, PowerBASIC will pop back up and execute the next
'statement and then go back to sleep and end.
POPUP SLEEP USING EMS, "C:\tsrtemp.$$$"
DO
' 61 = F3 68 = F10
POPUP STUFF chr$(0,0,28) ,0,0
'POPUP STUFF chr$(0,0,68) + "STOP" + chr$(13) ,0,19
popup sleep
end
LOOP 'keep looping
The delay needs to be there. Do i need an asmembly program to force these key's?
Help!!
------------------
[This message has been edited by michael Schelin (edited February 08, 2002).]
? "TSRDEMO Batch # 3 Started at ";time$
dummy& = SETMEM(-700000)
POPUP TIMER 400 'pop-up in 21 seconds
'once the time has passed, PowerBASIC will pop back up and execute the next
'statement and then go back to sleep and end.
POPUP SLEEP USING EMS, "C:\tsrtemp.$$$"
DO
' 61 = F3 68 = F10
POPUP STUFF chr$(0,0,28) ,0,0
'POPUP STUFF chr$(0,0,68) + "STOP" + chr$(13) ,0,19
popup sleep
end
LOOP 'keep looping
The delay needs to be there. Do i need an asmembly program to force these key's?
Help!!
------------------
[This message has been edited by michael Schelin (edited February 08, 2002).]
Comment