Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Leertaste/Space m it sndkey32 senden? (https://www.delphipraxis.net/117188-leertaste-space-m-sndkey32-senden.html)

SimStar001 13. Jul 2008 22:02


Leertaste/Space m it sndkey32 senden?
 
Hallo, ich nutze die sndkey32.pas, und muss die Leertaste senden? wie mache ich das, habe schon folgendes probiert, geht aber net:

Delphi-Quellcode:
sndkey32.SendKeys('{VK_SPACE}',true);
und

Delphi-Quellcode:
sndkey32.SendKeys('{ }',true);
beides funktioniert nicht?

wie mache ich das nun?

rotfc 13. Jul 2008 22:18

Re: Leertaste/Space m it sndkey32 senden?
 
Hat ja wohl doch ein wenig gedauert, bist Du auf sendkeys gekommen bist!

SnuffMaster23 13. Jul 2008 22:20

Re: Leertaste/Space m it sndkey32 senden?
 
ohne die Klasse zu kennen, vielleicht einfach ohne die Klammern?
Delphi-Quellcode:
sndkey32.SendKeys(' ',true);

SimStar001 13. Jul 2008 22:22

Re: Leertaste/Space m it sndkey32 senden?
 
haste ne lösung für mich!?

Zitat:

Hat ja wohl doch ein wenig gedauert, bist Du auf sendkeys gekommen bist!


Send key war nicht das problem, sondern vielmehr das fenster des programms an welches ich senden will herauszubekommen (Handle)

SimStar001 13. Jul 2008 22:25

Re: Leertaste/Space m it sndkey32 senden?
 
Zitat:

sndkey32.SendKeys(' ',true);
danke das hat geklappt!


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:38 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