![]() |
String -> PChar ..FEHLER =(
hi, habn Problem und zwar sagt delphi channel wäre string... Deswegen will das net klappen:
Delphi-Quellcode:
SorrY wennsch nen dummen fehler gemacht hab, konnte aber nur so bruchstücke finden und versuchte dann die Umwandlung so zu erstellen :drunken:
procedure TForm1.TimerTimer(Sender: TObject);
var channel:PChar; hOE: hWnd; begin channel := PCHAR(Edit1.text); if (x=30) AND (message1<>'') then begin hOE:=FindWindow(nil,' Channel: '+channel; SetForegroundWindow(hOE); SendKeys(message1); SendKeys(#13); end; ... |
Re: String -> PChar ..FEHLER =(
So ;)
Code:
...:cat:...
procedure TForm1.TimerTimer(Sender: TObject);
var [color=#f50000][s]channel:PChar;[/s][/color] hOE: hWnd; begin [s][color=#f50000]channel := PCHAR(Edit1.text);[/color][/s] if (x=30) AND (message1<>'') then begin hOE:=FindWindow(nil, [color=#f50000]PChar(' Channel: ' + Edit1.text)[/color]); SetForegroundWindow(hOE); SendKeys(message1); SendKeys(#13); end; ... |
Re: String -> PChar ..FEHLER =(
Echt geil, wie schnell das hier geht, Funzt SUPER THX
Das Forum ruled :stupid: |
Re: String -> PChar ..FEHLER =(
Zitat:
...:cat:... |
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:25 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 by Thomas Breitkreuz