我们正在瘦客户机上使用共享桌面。 默认情况下它带有窗口化的屏幕,但是通过按Alt + F11键,它将恢复到全屏。 所以,我们希望脚本在Windowslogin时执行一些延迟。
希望登录VBScript将为你工作。 将其附加到现有的登录脚本或将其另存为“.vbs”文件。 如果您不熟悉登录脚本,Microsoft有一些很好的教程。
Set WshShell = CreateObject("Wscript.Shell") 'Create wshell object WScript.Sleep(5000) 'Lets wait 5 seconds WshShell.AppActivate "EXACT TITLE OF THE WINDOW YOU WANT" 'EDIT THIS LINE! 'The line above selects the window so we make sure the keystrokes are sent to it WshShell.SendKeys "%{F11}" 'Send ALT+F11 Wscript.Quit 'Quit the script