Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi simulate alt + shift + y to activex component (https://www.delphipraxis.net/157207-simulate-alt-shift-y-activex-component.html)

haidomingo 3. Jan 2011 09:53

simulate alt + shift + y to activex component
 
Hello everyone
how to send via TButton
Shift + Control + Shift + control + y and v
Tacropdf control in the same form?
Thanks

haidomingo 4. Jan 2011 11:31

AW: simulate alt + shift + y to activex component
 
Delphi-Quellcode:
AcroPDF1.SetFocus;
     keybd_event(VK_SHIFT, Mapvirtualkey(VK_SHIFT, 0), 0, 0);
     keybd_event(VK_CONTROL, Mapvirtualkey(VK_CONTROL, 0 ), 0, 0);
     keybd_event( Ord('Y'), MapvirtualKey( Ord('Y'), 0), 0, 0);
     keybd_event( Ord('Y'), MapvirtualKey( Ord('Y'), 0), KEYEVENTF_KEYUP,0);
     keybd_event(VK_CONTROL, Mapvirtualkey(VK_CONTROL, 0 ), KEYEVENTF_KEYUP,0);
     keybd_event(VK_SHIFT, Mapvirtualkey(VK_SHIFT, 0), KEYEVENTF_KEYUP, 0);
   //  Sleep(100);
     keybd_event(VK_SHIFT, Mapvirtualkey(VK_SHIFT, 0), 0, 0);
     keybd_event(VK_CONTROL, Mapvirtualkey(VK_CONTROL, 0 ), 0, 0);
     keybd_event( Ord('V'), MapvirtualKey( Ord('V'), 0), 0, 0);
     keybd_event( Ord('V'), MapvirtualKey( Ord('V'), 0), KEYEVENTF_KEYUP,0);
     keybd_event(VK_CONTROL, Mapvirtualkey(VK_CONTROL, 0 ), KEYEVENTF_KEYUP,0);
     keybd_event(VK_SHIFT, Mapvirtualkey(VK_SHIFT, 0), KEYEVENTF_KEYUP, 0);
Thanks


Alle Zeitangaben in WEZ +1. Es ist jetzt 15:53 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz