Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


FindWindow Help?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
The0neThe0nly
Expert Cheater
Reputation: 0

Joined: 08 Dec 2009
Posts: 119
Location: In a box

PostPosted: Sat Feb 11, 2012 10:24 pm    Post subject: FindWindow Help? Reply with quote

I am making a console application that creates a dialog box in my desired program. When I create a dialog box, it crashes. I believe it is because it is within Place 1 (shown here)

My code for the FindWindow is
Code:
HWND hWndCore = FindWindow(0, "Roblox - [Place1]");


And I want to create my window the area outside of Place 1. How do I do this?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8588
Location: 127.0.0.1

PostPosted: Sun Feb 12, 2012 1:16 am    Post subject: Reply with quote

From the look of it, Roblox is the window title and [Place1] is the class name.

Try using this instead:
HWND hWndCore = FindWindow( NULL, "Roblox" );

Or:
HWND hWndCore = FindWindow( "Place1", "Roblox" );

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
The0neThe0nly
Expert Cheater
Reputation: 0

Joined: 08 Dec 2009
Posts: 119
Location: In a box

PostPosted: Sun Feb 12, 2012 8:45 am    Post subject: Reply with quote

No, Roblox - [Place1] is the name of the window because when I go to change text it says "Roblox - [Place1]" and when I use CreateWindowEx for Roblox - [Place1] I can see my window there in Dissect Windows.


I also noticed that when Roblox - [Place1] creates a dialog box after taking an in-game screenshot, it is outside of the window, Roblox - [Place1], which is where I need my dialog box to be.

Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8588
Location: 127.0.0.1

PostPosted: Sun Feb 12, 2012 10:37 am    Post subject: Reply with quote

Whats your CreateWindowEx call look like?
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
The0neThe0nly
Expert Cheater
Reputation: 0

Joined: 08 Dec 2009
Posts: 119
Location: In a box

PostPosted: Sun Feb 12, 2012 10:44 am    Post subject: Reply with quote

Wiccaan wrote:
Whats your CreateWindowEx call look like?


Code:
hWndHax = CreateWindowEx(WS_EX_CLIENTEDGE, "#32770", "Window", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_CLIPCHILDREN, 0, 0, 500, 380, hWndCore, NULL, hInst, NULL);
         ExplorerButton = CreateWindowEx(NULL, "BUTTON", "Explorer", BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE, 0, 377, 500, 20, hWndHax, NULL, hInst, NULL);
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8588
Location: 127.0.0.1

PostPosted: Sun Feb 12, 2012 11:06 am    Post subject: Reply with quote

Try getting rid of WS_CHILD in your hWndHax window call.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
The0neThe0nly
Expert Cheater
Reputation: 0

Joined: 08 Dec 2009
Posts: 119
Location: In a box

PostPosted: Sun Feb 12, 2012 11:59 am    Post subject: Reply with quote

When I remove WS_CHILD, the window shows but is not a child window of [Place 1] and it also stops responding after creation.

I'm tryign to get my dialog box to create in the area outside of Place 1 like where the Roblox Function Marsheller is.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites