使用Python的Win32模块(Win32Gui,Win32api,Win32UI,...)使用锁定窗口大小
我有一个正在运行的外部应用程序,并且我获得了应用程序窗口的hwnd
(为了简单起见,请说它是hwnd = win32gui.getforegernwindow()
>
调整窗口的大小,从而锁定窗口的大小并使窗口大小静态?
因此,用户无法 位置
窗口
?
-
-
-
- 是您要锁定大小的应用程序:
no。
它是外部第三方应用程序。
I have an external application that is running and I obtained the application window's HWND
(for sake of simplicity let's say it's hwnd = win32gui.GetForegroundWindow()
.
I am aware that I can resize and move the said window using win32gui.MoveWindow(...)
.
My question is: am I able to set the window somehow so that the user cannot resize the window, thus locking the window size, and making the window size static?
Bonus question: am I also able to "lock" the window position, preventing the user from moving the window position?
Some example lines of Python code would be appreciated.
Additional Clarification Notes
- Python version: Python
3.X.X
- Operating System:
Windows 10
- User is Administrator:
Yes
- Is it your own application you are trying to lock the size:
No.
It's an external 3rd party application.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论