更改窗口焦点需要哪个库 [英] Which Library Required for change window focus
问题描述
我在Windows操作系统中使用User32.dll进行窗口处理,我使用以下方法识别窗口,然后更改了窗口的焦点
< pre lang =cs> window =
user32.FindWindow( notepad,< span class =code-keyword> null );
user32.SwitchToThisWindow(window, true );
我想为Linux操作系统做同样的事情,但我无法完成这项任务,因为我不知道Linux为我们提供了哪些库来处理窗口。
和将调用哪些函数而不是FindWindow()和SwitchToThisWindow()......
谢谢
问候
Nei Sa
I have used User32.dll for window handling in Windows OS in which I have used following methods to identify the window and then changed focus of the window
window =
user32.FindWindow("notepad", null);
user32.SwitchToThisWindow(window,true);
Same thing I want to do for Linux OS but I am unable to do this task because I don't know that which library Linux provide us for window handling.
and which functions will be called instead of FindWindow() and SwitchToThisWindow()...
Thanks
Regards
Nei Sa
这篇关于更改窗口焦点需要哪个库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!