Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Control F1 keycode with TP7 under XP

Status
Not open for further replies.

galtjunk

Programmer
Jul 2, 1999
5
US
XP will not pass the control f1 keycode through to my program.
Control F2 goes through fine. Is there a cure?
 
I have no trouble using function key combinations under XP Home (even in windowed mode). Try the following short program to test if windows is really the problem:
Code:
program test;
uses crt;
var ch,ch2 : char;

begin
  repeat
    ch:=readkey;
    write(byte(ch):4);
    if ch=#0
     then writeln(byte(readkey):5)
     else writeln;
  until ch=#27;
end.

Regards,
Bert Vingerhoets
vingerhoetsbert@hotmail.com
Don't worry what people think about you. They're too busy wondering what you think about them.
 
I ran your program and it does not react to the following control combinations.

control f1
control f3
control f6

I am using XP Pro and BP7.

 
Maybe you keyboard has some loose contacts; do these key combinations work in other (non-DOS) applications?

Regards,
Bert Vingerhoets
vingerhoetsbert@hotmail.com
Don't worry what people think about you. They're too busy wondering what you think about them.
 
I found it.
WinDVD had programmed the Control F1 keystroke. It was being intercepted and not sent to the TP ide or TP programs.

Thanks,

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top