emulating Function key say F4 emulating Function key say F4 kotharikailash (Programmer) (OP) 25 Oct 10 04:32 Keyboard xxx is command used to emulate read. I want to stuff function key codes say F4(which is -40?) in keyboard. How to do it? RE: emulating Function key say F4 GriffMG (Programmer) 25 Oct 10 05:08 I think F4 is -3I also *think* you would want to do this:Keyboard chr(-3)BUT that won't work, as the keyboard instruction probably not interpret chr(-3) very well (chr() only works for 0-255)Do you have a setkey set? RegardsGriffKeep ingThere are 10 kinds of people in the world, those who understand binary and those who don't.