Home > Software engineering >  How to use vb to get news from known external program play prompt box handle
How to use vb to get news from known external program play prompt box handle

Time:09-20

How to use vb for the external program known pop up message prompt box handle,
Using findwindow and findwindowex function, are unable to get the message prompt box handle,
Use GetForegroundWindow get just the outer handle to the parent program,
Getactivewindow get handle is null,
So how to control the pop-up message box simulation window click on the message to close the message window,
With handle to check tools can see message window is additional one thread

CodePudding user response:

Is findwindow and findwindowex, can't catch it is no use must be right,

CodePudding user response:

It is recommended to use Spy4Win
Under Win10 if it won't, so we have to use Spy++

CodePudding user response:

Must be to use FindWindow (), FindWindowEx () to find,

When the window pops up, use SPY++ first take a look at it's window information (title, the name of the class, etc.), hierarchical relationships,
And then you can consider how to "positioning" in it,

CodePudding user response:

In general, if it is a "window", be sure only need to use FindWindow () to go,
Only need to find "contained within a window of the window" (controls, MIDI child Windows, etc.), only need to use FindWindowEx (),
  • Related