WGestures2-bugs icon indicating copy to clipboard operation
WGestures2-bugs copied to clipboard

亮度调节无法使用

Open w-66 opened this issue 2 years ago • 0 comments

亮度调节,在很久以前(去年还是前年)用同一台电脑时,还用过几次,后来不知道什么时候就不能用了 使用管理员打开软件还是不行。

自带的lua脚本

function wgAction(pos,wid,pid,exe,title,mode)
  local result = WG.SetBrightness(pos, 5);
  if(result >= 0) then
    WG.ShowToast('☀ '..result..'%', 1000);
  end
end

调用时的日志

System.Exception: Cannot get monitor brightness! NERR_Success
   at YingDev.WGApp.LuaApi.WG.SetBrightness(POINT pt, Int32 percent_abs_or_delta, Boolean isDelta)
System.Exception: Cannot get monitor brightness! NERR_Success
   at YingDev.WGApp.LuaApi.WG.SetBrightness(POINT pt, Int32 percent_abs_or_delta, Boolean isDelta)

w-66 avatar Jun 11 '23 06:06 w-66