Turning on Presentation Mode in Windows?

爱⌒轻易说出口 提交于 2019-12-10 03:59:33

问题


Windows Vista has "Presentation Mode", which you can turn on with the Mobility Center.

How can I turn it on programmatically?


回答1:


The only way I found is to call presentationsettings.exe with /start or /stop directly.

I also found this link that describes how to activate presentation mode on desktop PCs: http://www.dubuque.k12.ia.us/it/mobilitycenter/

Hope that helps.




回答2:


This seems to fill your need: link text




回答3:


This is quite old, but I found this wasn't working from a third party program, because cmd wasn't inheriting the environment, therefore these weren't working like they would from the Run Box:

  • PresentationSettings
  • PresentationSettings /start
  • PresentationSettings /stop

However, using powershell to spawn a new environment, I was able to invoke it programmatically with the following commands:

  • Start-Process cmd -ArgumentList "/c PresentationSettings" # to spawn a GUI
  • Start-Process cmd -ArgumentList "/c PresentationSettings /start" -NoNewWindow # execute with no gui, but the icon appears in the tray
  • Start-Process cmd -ArgumentList "/c PresentationSettings /stop" -NoNewWindow # execute with no gui, but the icon disappears from the tray after it has been started.


来源:https://stackoverflow.com/questions/251104/turning-on-presentation-mode-in-windows

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!