![]() |
FindWindowEx in C#?
Moin,
Ich möchte in meinem C# Programm ein Edit eines fremden Programms Text hinzufügen, nur wie mache ich das? Ich habe herausegefunden, dass ich den Prozess per:
Code:
bekomme, doch wie geht es dann weiter? Wie komme ich an das Edit, dass sich dort befindet? Und wie beschreibe ich es auchnoch?
private void button1_Click(object sender, EventArgs e)
{ Process[] p = Process.GetProcessesByName("SPORE(TM)_code"); } MfG |
Re: FindWindowEx in C#?
Hi! Schau mal, ob Dir das weiterhilft. ;)
Code:
Grüße,[DllImport("user32")] private static extern IntPtr FindWindow(string lpClassName, string lpWindowName); [DllImport("user32")] private static extern IntPtr FindWindowEx(IntPtr hWnd1, IntPtr hWnd2, string lpsz1, string lpsz2); [DllImport("user32")] private static extern bool SetWindowText(IntPtr hWnd, string lpString); IntPtr HWnd; HWnd = FindWindow(); HWnd = FindWindowEx(); SetWindowText(); Marc |
Re: FindWindowEx in C#?
€: Ohne
Code:
funktioniert es natürlich nicht. ;)
using System.Runtime.InteropServices;
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 22:55 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