I dont know in VB..
but in delphi you can use this part of code, maybe at onTimer event..
if getasynckeystate(VK_F6)<>0 then
begin
//use your sendkeys code here..
end;
getasynckeystate is a function to check if a button is pressed.. in this case is F6.. use it at OnTimer event to check it everytime.. you can set the interval of Timer to 100-250 ms.. _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum