How can Java get handle windows? And how, knowing the handle, can I close this window?
Naryl is such a method using JNA:
User32 user32 = (User32) Native.loadLibrary("user32", User32.class); HWND foregroundHWND = user32.GetForegroundWindow(); user32.INSTANCE.PostMessage(foregroundHWND, User32.WM_CLOSE, new WinDef.WPARAM(), new WinDef.LPARAM());
Source: https://ru.stackoverflow.com/questions/103454/More articles:Quotes in MySQL queryException when working with databasePHP OOP QuestionAssigning input to a new variableHow to write to a variable element heightPick plain text from HtmlProportional stretching of pictures?How to update DataGridView data from another form in C #?How is the message checked on the forums?Restriction of page visits at certain times of the day, nightAll Articles