Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 07:49

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



C++ Winapi FindWindow Problem

Discussion on C++ Winapi FindWindow Problem within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
ZackBlack's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 334
Received Thanks: 79
Question C++ Winapi FindWindow Problem

Hi,
hab folgendes Problem:
Will ein Fenster umbennen, das will aber nicht wirklich.
Code:
#include <Windows.h>
#include <iostream>

using namespace std;

int main()
{
	char lol[] = "^^";
	HWND hwnd; 
 hwnd=FindWindowA(NULL, "Dokument - WordPad");  // Fensterhandle anhand von Titel holen
    SetWindowTextA(hwnd, lol);  // Titelleiste ändern 
return 0;
}
Weis jemand zufällig warum? Es lässt sich kompilieren, aber es macht nichts.
Toll Problem 30s später gelöst. Schleife hinzugefügt, da stimmte wohl das Timing nicht. Sorry das ich das nicht vor dem erstellen des Threads probiert hab.
ZackBlack is offline  
Reply


Similar Threads Similar Threads
[C++]FindWindow findet nichts.
09/13/2010 - C/C++ - 18 Replies
http://www.paste-code.com/paste.php?id=kbC95ZHRry Aber sobald ich zum Beispiel : FindWindow(NULL,"PVP.net-Client") angebe, findet er es und gibt mir dann die HWND aus. Wo liegt das problem? Ich hab es auch schon so: FindWindow("\\„League of Legends\\“-Startprogramm - 1,0,0,31 - ", NULL); versucht, geht trozdem nicht :/
FindWindow parameter richtig nutzen...
06/15/2010 - General Coding - 14 Replies
HWND xxx = FindWindow(NULL ,"XXX"); ShowWindow(xxx, SW_RESTORE); FindWindowW': Konvertierung des Parameters 2 von 'const char ' in 'LPCWSTR' nicht möglich << Diese meldung beim compilen
Kal FindWindow help
12/15/2008 - Kal Online - 2 Replies
yup, what the title is saying, i'm trying to find the window of kalonline ... but failed.... dont work idk why, name is correct.... hope someone can help Source: // Basic Include's #include <windows.h> #include <iostream> // The Namespace
WinAPI use in C#
06/09/2008 - .NET Languages - 15 Replies
Hi, in Anlehnung an die Topics hier habe ich mich dazu aufgerafft, nen Annotrainer zu schreiben (siehe Attachment). In der Listview werden halt aktive Annoprozesse angezeigt, die man dann anwählen kann um dann mit dem Cheat button Geld zu cheaten. Jedes item in der Listview hat im item.Tag das jeweilige Prozessobject, somit auch die ID. Allerdings komme ich mit den eigentlichen Funktionen OpenProcess, ReadProcessMemory und WirteProcessMemory in C# noch nicht klar. Zwar bekomme ich das...
WinAPI use in C#
05/19/2008 - .NET Languages - 0 Replies
Hi, in Anlehnung an die Topics hier habe ich mich dazu aufgerafft, nen Annotrainer zu schreiben (siehe Attachment). In der Listview werden halt aktive Annoprozesse angezeigt, die man dann anwählen kann um dann mit dem Cheat button Geld zu cheaten. Jedes item in der Listview hat im item.Tag das jeweilige Prozessobject, somit auch die ID. Allerdings komme ich mit den eigentlichen Funktionen OpenProcess, ReadProcessMemory und WirteProcessMemory in C# noch nicht klar. Zwar bekomme ich das...



All times are GMT +1. The time now is 07:50.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.