getting the DOS console window handle -
could someone please tell me if there is a way to get
the handle for the dos console window if a program
is run from the command line instead of from windows?
I want to build a console app (as per the console
tutorial on this site) but want the output to appear
in the dos window that it is run from instead of
in a new console. also, how can i design it so that if
the program was NOT run from a dos console that it will
open a new console window to perform its actions?
getting the DOS console window handle -
could someone please tell me if there is a way to get
the handle for the dos console window if a program
is run from the command line instead of from windows?
I want to build a console app (as per the console
tutorial on this site) but want the output to appear
in the dos window t
hide console -
Is their anyway to write an app that would hide the console it was run in. And i dont mean that i am writing console apps and cant figure out why the console keeps poping up instead of windows. I want to make a (hopefully) little app that gets the handle of the window console window
Capture DOS console window output -
Hello!
I have a problem.
i have a DOS program running under windows XP. it's a dos console.
i'm looking for a way to get all the window text just by the window handle.
i was looking for a solution but all i found it an examples of inserting a commandline and get the resault.
WndProc for a console window -
If possible, I wanna get the handle for my console window and catch all of the messages going to my window...can I do that?
Console window -
Hi,
I know how to open a console window and send output to it, but is it possible to attach that window to my main program window? or completely hide the console window?
Thanks in advance.
Console & Window -
How do you display a Windows form and a Console at the same time....
I have an OpenGL window that does it's thing, and then I would like to have a console window to output data::
This is what I have???
console window shows up then it calls the WinMain function which opens my openg
Showing and hiding the console window -
I have what is basically a WinForms application, but a class within it writes a lot of debugging info to the Console.
When compiling the application, if I set "Output Type" to "Windows Application" then all the debugging info goes off into the ether. If I compile
Create Console from existing console -
Basically this is what I need to do:
Console A spawns Console B:
Console A maintains input and simply uses console B as a seperate window for display purpose only.
However, from what I have read and been told this is not possible. But, I know that someone here probably has a f
writing to console -
I'm having difficulty writing to a console. I'm trying to add a command line option to list command line options. I can't seem to get the handle for the console that called the application. Everything works fine if I call AllocConsole before trying to write, but that opens a second con
console app spawning window, message pump -
I've got a console application that is in a loop, getting an image from a webcam using an image processing library (OpenCV). With the same library i'm spawning a window and displaying the image.
The problem that i'm having is that because i'm in a loop, the spawned window never gets
Window handle and close window -
Hello everybody,
I try to get a handle on a window which is popped up by a special remote library. The programm stops as long as I have pressed the O.K. button on the window. After this I would get the handle, but this is to late. I want to get the handle when the window pops up. I
VB and Console Application -
Hello,
I have read your tutorial regarding VB and Console Application.
Right now i'm writing a program in VB using the console. Now, i'm executing a program using ShellExecute API function. This function opens its own
console, and return a handle to the task (program).
1. Ho
Getting Handle of a known Window -
Hi Guys!
1st of all, to clear it out for you, I know how to get the handle of any window or control. However, I need to know how can I get the handle of a known window each time!
I mean, as the window owner application ends and starts again, its windows handles change! How can I
Running w/o the Console Window -
How do I run my program without the console window appearing? My program doesn't produce any to the screen and I don't want my users having to stare at a console window.
Thanks,
Chris
minimize the console window of a console application -
Hi!
How can i minimize the console window of a console application which pop-ups when the console application is getting started. I don't have an idea how to solve this problem! I have already looked for a similar problem like this here in the forum but i didn't found something help
Show a console window in VB6 App -
Hey All,
Is it possible to show the console window inside a Vb6 application.
The reason is I have to start 2 bat files, 1 initiates another application and 1 produces a console which contains log information. I need the log information console window to be 'part' of the vb6 app.
Getting the text from a DOS console window. -
Hello,
I am making a program that shells the Borland C++ 5.5 compiler, using ShellExecute... and the question is.. how do I get the output? what was "written" in the console window?
And another question. How do I make the application wait until the console window is clos
Want To Get Handle Of Child Element -
hi i am trying to get value from Mozilla Firefox address bar.
i know it is possible with window handle and window api.
what i did till now is i had handle of main MOZILLA window.after getting handle of Mozilla window.
what i can do so that i can have handle of text box in it?
[2005] Disabling the console window -
Hi,
I am running a program from my vb program that suppose to extract files.
the program that I am running is a console program.
when the program lunch a console window opens and show the extracting process.
How can I diable this console window and letting the program running
DOS Console in Win32 -
Hey,
I dont know if this has been posted in here before...
I would like to show a dos console window in my
Win32 Application but I don't have the slightest clue in how
to go about it... any ideas?
what i want to do is have a console window appear and ask
the user some questio
(RESOLVED) [2005] MsgBox / Console Window oddity -
In doing a quick console app demo that displays message boxes, I find that the first time MsgBox is called, it is displayed BEHIND the console window, whereas the second and subsequent message boxes display in front of the console window as they should. Any idea what's up with the firs
Query MMC console or active window -
Is it possible to get info from an existing MMC console (Microsoft Management Console). Or maybe getting highlighted text from the active window?
Implementing "/" help from console -
I'd like to add a /? command-line option to my VB app that will display a help & usage message. It needs to work in a DOS window. How do I send text output to the console?
I've seen the article at http://www.vb-world.net/articles/console/ , but that's not quite what I need. That
Console window vanashing in Visual Studio .net -
Hi all, upto now i've been using MS Visual C++ 6.0, but as my uni. was offering a free version of .NET (i love being a student) i thought i'd give it a go. Anyhow, here's the question:
When i run my console app, how do i get it to leave the console window open (like in MS VC++ 6), s
Hiding a cmd.exe window after CreateProcess -
I'm running a console application using the CreateProcess API. This opens up cmd.exe and then the console application appears as a separate window. I want to hide the cmd.exe window and keep the console application visible.
Any ideas?
TIA
help - hwnd, ShellExecute, FindWindow, etc. -
hello.
a couple questions (and massive apologies if these have already been answered).
ShellExecute and FindWindow both return a window handle (hwnd), right?
and window handle and hwnd mean the same thing, right?
and now for a meaty question.
How can I tell if a window with a
Window Handle Validation -
I have a handle assigned to a long datatype for a window. If I close the window, how can I check if the handle still exist?
I can cycle through a list of windows by enum or findwindowex. But is there a faster way to check if the handle is still valid?
handle closing of the Concole window -
I have Console application. How can I handle closing of the Concole window ?
Dos In A Tetbox -
Is it possible at all for me to be able to run a dos prompt from a textbox just like if it was a Console Window
so i can do like
cd.. C:\
myapp.exe
whatever my ap wants
return data
morestufff
retun data
Etc and so on
I can type the commands in a console
How to handle of next control within it -
Here is what I am trying to do. I have the handle of a window. I want to get the handle of the next item within the window. I know how to do a GetNextWindow but that is for controls after the complete window. And I know how to use FindWindowEx but you have to know the Class Name of
Closing IE5 -
How can you manage to close all Internet Explorer Windows, except one (knowing its handle)?
I tried to use the FindWindow API function to get the handle of each IE5 window (knowing their class: IEFrame), then compare this handle to the one of the IE window I didn't want to close, and
Changing Console window size in vb.net -
Hello,
Does anyone know how to change/specify the console window size in VB.NET upon startup of a console application ?
Thanks,
Yasmin
console application - capturing system reponse -
I have VB 6 and am executing a .bat file via a console window opened up by EXECCMD. The .bat file runs an awk script. I would like to be able to interpret the system response in the console window based on the results of running that .bat file. For example if the system displays the me
Subclass MDI Window to get new window hWnd -
I want to subclass an MDI window and have the ability to get the handle of the newly created window before it appears. So far I can subclass the window and detect every time a window is about to be created, but I don't know how to get that window's handle.
To find out when an MDI f
compiled console app -
once i compile a console app and run the exe.. it works... but it closes the window before i can see the output.. what line can i put at the end to make the window stay open until another key is pressed?
clear the debug console -
I have something written to the console. But the problem is, everytime i run the program, the stuff to the console gets added. Is there anyway i can clear the console?
Like picture1.cls, is there sometin similar for the debug window?
Is it at all possible -
Is it at all possible to close another app from within a vb app without using FindWindow to get the window's title bar?
Is there no way of using the window handle?
Can't you get it the moment you open the app from within vb and then use the handle to close the window again.
I
Drawing Graphics in a Console Window -
How do I draw grahpics in a console mode window?
Hide Psexec console window -
If there's a way to hide the psexec console window? Even if in the startinfo of the process I set .StartInfo.CreateNoWindow = True the console window is still showing.
Thanks
"Advanced Compile Options" and Problem with "console" -
I was previously working with Visual Studio 2005 beta 2
and since .NET Framework 2.0 I switched to
Visual Basic 2005 Express Edition.
There is no
"Advanced Compile Options" in the "My Project"/Compile tab.
Is this normal?
(I can't set any "optimize&quo