Help: Stick window to another window

Posts 1–5 of 5 · Page 1 of 1
Help: Stick window to another window
Hello, i need some help. I have made an dll with some hacks and stuff, and i have made this dos window that opens when the dll is injected. The dos window opens fine but when i click on the game it minimizes. So my question is can i stick the dos window on top of the game bit still be able to move it.

Im sorry for my bad english, and thank you

Here is how it looks at the moment.

Stick it....? lol wut. That'd just be too much trouble. You'd probably be best off injecting into the the game or drawing a DX layer on top of the screen.
Set it to top most? (if that works)
Quote Originally Posted by freedompeace View Post
Set it to top most? (if that works)
It worked, this was all needed


int hConHandle;
long lStdHandle;
FILE *fp;
AllocConsole();//Bring up a console window



//output
lStdHandle = (long)GetStdHandle(STD_OUTPUT_HANDLE);
hConHandle = _open_osfhandle(lStdHandle, _O_TEXT);
fp = _fdopen(hConHandle, "w");
*stdout = *fp;
setvbuf( stdout, NULL, _IONBF, 0);
//input
lStdHandle = (long)GetStdHandle(STD_INPUT_HANDLE);
hConHandle = _open_osfhandle(lStdHandle, _O_TEXT);
fp = _fdopen(hConHandle, "w");
*stdin = *fp;
setvbuf( stdin, NULL, _IONBF, 0);
ios::sync_with_stdio();

HWND hwnd = GetConsoleWindow();

for(;;Sleep(10))
{

SetWindowPos(hwnd,0,0,0,0,SWP_NOMOVE, TRUE);
}

Why dosent code button work?
Remember to add sleep (at least 1 ms) otherwise you might kill the CPU's usage.
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Talk with us