Python,禁用Windows 7视觉效果(在“性能”菜单下)

Python,禁用Windows 7视觉效果(在“性能”菜单下),python,windows-7,settings,visual-effects,Python,Windows 7,Settings,Visual Effects,我环顾四周,发现了这个: 菜单位于此处:右键单击我的电脑、属性、高级系统设置、高级选项卡、性能->设置 这正是我所希望的。然而,有一些设置我似乎找不到。这是我到目前为止的列表,特别是来自视觉效果菜单中的选项列表 //SPI_SETCLIENTAREAANIMATION = Animate controls and elements inside windows //SPI_SETANIMATION = Animate windows when minimizing and maximizing

我环顾四周,发现了这个:

菜单位于此处:右键单击我的电脑、属性、高级系统设置、高级选项卡、性能->设置

这正是我所希望的。然而,有一些设置我似乎找不到。这是我到目前为止的列表,特别是来自视觉效果菜单中的选项列表

//SPI_SETCLIENTAREAANIMATION = Animate controls and elements inside windows
//SPI_SETANIMATION = Animate windows when minimizing and maximizing
//SPI_SETMENUANIMATION = Fade or slide menus into view
//SPI_SETCURSORSHADOW = Show shadows under mouse pointer
//SPI_SETDROPSHADOW = Show shadows under windows
//SPI_SETCOMBOBOXANIMATION = Slide open combo boxes
//SPI_SETCLEARTYPE = Smooth edges of screen fonts
//SPI_SETLISTBOXSMOOTHSCROLLING = Smooth-scroll list boxes
//SPI_SETUIEFFECTS = A whole bunch of settings
仍然缺少这些

//Animations in the taskbar and Start Menu
//Show translucent selection rectangle
//Show window content while dragging
//Use drop shadows for icon labels on the desktop
//Use visual styles on windows and buttons
是否有人设法找出可以从何处启用/禁用其余设置?也许我错过了一个值

顺便说一句:我在Python中这样设置它们

windll.user32.SystemParametersInfoA(SPI_SETLISTBOXSMOOTHSCROLLING, 0, cBoolTrue, 0)

谢谢。

好吧,我在这里提供的不是一个真正的好答案,但这可能有点帮助

要更改的内容可以通过注册表进行控制,您需要以下值:

//Animations in the taskbar and Start Menu              | HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced::TaskbarAnimations
//Show translucent selection rectangle                  | HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced::ListviewAlphaSelect
//Show window cntents while dragging                    | HKEY_CURRENT_USER\Control Panel\Desktop::DragFullWindows
//Use drop shadows for icon labels on the desktop       | HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced::ListviewShadow
//Use visual styles on windows and buttons              | HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ThemeManager::ThemeActive
但是,这不是最佳解决方案,还需要重新启动


还有什么值得一提的,关于某些事情,你是错的

  • SPI_SETCLEARTYPE
    不用于字体平滑。为此,必须使用
    SPI_setfontsoothing
    SPI_setfontsoothingtype
  • SPI_SETUIEFFECTS
    -你说这是一堆设置,你是对的。但是,您应该单独获取/设置所有这些参数,
    SystemParametersInfo
    允许单独访问所有参数

您忘记了SPI\u SetToolTipanation=淡入淡出或将工具提示滑入视图SPI\u SETDRAGFULLWINDOWS=拖动时显示窗口内容