![]() |
Re: Package erstellen und installieren...
hmm nichts...
Delphi-Quellcode:
unit sndkey32;
interface Uses SysUtils, Windows, Messages, Classes; Function SendKeys(SendKeysString : PChar; Wait : Boolean) : Boolean; function AppActivate(WindowName : PChar) : boolean; //procedure Register; {Buffer for working with PChar's} const WorkBufLen = 40; var WorkBuf : array[0..WorkBufLen] of Char; |
Re: Package erstellen und installieren...
Ist das die ganze Unit?
|
Re: Package erstellen und installieren...
ich denke schon, so geht es zumindest weiter...
Delphi-Quellcode:
:oops: :oops: :oops: :pale: :pale: :pale:
unit sndkey32;
interface Uses SysUtils, Windows, Messages, Classes; Function SendKeys(SendKeysString : PChar; Wait : Boolean) : Boolean; function AppActivate(WindowName : PChar) : boolean; //procedure Register; {Buffer for working with PChar's} const WorkBufLen = 40; var WorkBuf : array[0..WorkBufLen] of Char; implementation type THKeys = array[0..pred(MaxLongInt)] of byte; var AllocationSize : integer; (* Converts a string of characters and key names to keyboard events and passes them to Windows. Example syntax: SendKeys('abc123{left}{left}{left}def{end}456{left 6}ghi{end}789', True); *) procedure Register; begin RegisterComponents('Samples', [ Sendkeys ]); end; Function SendKeys(SendKeysString : PChar; Wait : Boolean) : Boolean; type WBytes = array[0..pred(SizeOf(Word))] of Byte; TSendKey = record Name : ShortString; VKey : Byte; end; . . . |
Re: Package erstellen und installieren...
Entferne die Register.Prozedur komplett.
|
Re: Package erstellen und installieren...
register.prozedur????
merkiere für mich idiot am besten den teil der raus muss |
Re: Package erstellen und installieren...
Alles was du vorhin unter meiner Anleitung eingefügt hast.
|
Re: Package erstellen und installieren...
etwa dann so???
Delphi-Quellcode:
dann gibt es wieder keinen punkt unter Saples...
unit sndkey32;
interface Uses SysUtils, Windows, Messages, Classes; Function SendKeys(SendKeysString : PChar; Wait : Boolean) : Boolean; function AppActivate(WindowName : PChar) : boolean; //procedure Register; {Buffer for working with PChar's} const WorkBufLen = 40; var WorkBuf : array[0..WorkBufLen] of Char; implementation type THKeys = array[0..pred(MaxLongInt)] of byte; var AllocationSize : integer; (* Converts a string of characters and key names to keyboard events and passes them to Windows. Example syntax: SendKeys('abc123{left}{left}{left}def{end}456{left 6}ghi{end}789', True); *) //procedure Register; //begin // RegisterComponents('Samples', [ Sendkeys ]); //end; irgendwie muss es doch möglich sein... soll ich das projekt mal hochladen und einer schaut sich das an??? |
Re: Package erstellen und installieren...
Zitat:
Du könntest natürlich diese Prozedur zu Methode einer (Komponenten-)Klasse machen und diese dann registrieren. |
Re: Package erstellen und installieren...
ok, danke das funktioniert nun :-D :-D :-D :-D
Verstehe nur noch nicht wie dann das hier gemeint war... ![]() Danke an alle, die geholfen haben... Jetzt erst mal n bier... :cheers: :dp: :dp: :dp: |
Re: Package erstellen und installieren...
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 17:45 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz