Wednesday, June 20, 2012

ENTER KEY IN TWEBBROWSER

FormKeyPress:

if (Key=#13) then
begin
   Keybd_Event(VK_LCONTROL, 0, 0, 0); //Ctrl key down
   Keybd_Event(Ord('M'), MapVirtualKey(Ord('M'), 0), 0, 0); // 'M' key down
   Keybd_Event(Ord('M'), MapVirtualKey(Ord('M'), 0), KEYEVENTF_KEYUP, 0); 
  // 'M' Key up
   Keybd_Event(VK_LCONTROL, 0, KEYEVENTF_KEYUP, 0); // Ctrl key up
end;

0 comments:

Post a Comment

 
Related Posts Plugin for WordPress, Blogger...