BetoValle Messages: 203 Registered: September 2020 Location: Brasil Valinhos SP
Experienced Member
Hi,
thanks but that's not what I'm looking for. See the first need is to search the
an application running on windows, so that it does not load it "again",
and also bring it in front of all the others.
my application, loads another "java" application. In the java application there is already the same content as the one you suggested ie loading a single instance. So my goal is that the C ++ application before loading the java application, evaluate it and if it is loaded then bring it forward.
How would I use a "findWindow" function that I could search among those that are eventually open (as the task manager displays), to evaluate this. I did not identify among the existing functions in U ++ a "findWindow" function but I believe that something like this:
HWND = findWindow ("title of the java application");
if HWND not null or exist -> HWND-> bringToFront ();