| View previous topic :: View next topic |
| Author |
Message |
The0neThe0nly Expert Cheater
Reputation: 0
Joined: 08 Dec 2009 Posts: 119 Location: In a box
|
Posted: Sat Feb 11, 2012 10:24 pm Post subject: FindWindow Help? |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8588 Location: 127.0.0.1
|
Posted: Sun Feb 12, 2012 1:16 am Post subject: |
|
|
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 |
|
 |
The0neThe0nly Expert Cheater
Reputation: 0
Joined: 08 Dec 2009 Posts: 119 Location: In a box
|
Posted: Sun Feb 12, 2012 8:45 am Post subject: |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8588 Location: 127.0.0.1
|
Posted: Sun Feb 12, 2012 10:37 am Post subject: |
|
|
Whats your CreateWindowEx call look like?
_________________
- Retired. |
|
| Back to top |
|
 |
The0neThe0nly Expert Cheater
Reputation: 0
Joined: 08 Dec 2009 Posts: 119 Location: In a box
|
Posted: Sun Feb 12, 2012 10:44 am Post subject: |
|
|
| 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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8588 Location: 127.0.0.1
|
Posted: Sun Feb 12, 2012 11:06 am Post subject: |
|
|
Try getting rid of WS_CHILD in your hWndHax window call.
_________________
- Retired. |
|
| Back to top |
|
 |
The0neThe0nly Expert Cheater
Reputation: 0
Joined: 08 Dec 2009 Posts: 119 Location: In a box
|
Posted: Sun Feb 12, 2012 11:59 am Post subject: |
|
|
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 |
|
 |
|