Есть ли способ заблокировать мышь для данного окна во время работы скрипта?
Is there a way to block the mouse for given window while script is running?
------------------------------------
I found this topic -> https://forum.uokit.com/index.php?showtopic=69089, but it disables mouse at all. My goal is to disable the mouse(clicks and moves) for the workwindow() only.
Я нашел эту тему -> мышь отключена, но она вообще отключает мышь. Моя цель - отключить мышь (щелчки и движения) только для workwindow().
--lua
local ffi = require("ffi")
local user = ffi.load('User32')
ffi.cdef[[ bool EnableWindow(int hWnd, bool bEnable); ]]
user.EnableWindow(workwindow(), false) -- disable window
wait(5000)
user.EnableWindow(workwindow(), true) -- enable window
Thank you cirus!
Русская версия Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)