我们正在瘦客户机上使用共享桌面。默认情况下,它带有窗口屏幕,但通过按Alt+F11键,它将恢复到全屏。因此,我们希望在windows登录时执行一个脚本,并有一定的延迟。
最佳答案
希望登录vbscript对您有用。将此附加到现有登录脚本或将其另存为“.vbs”文件。Microsoft has some good tutorials if you are unfamiliar with login scripts.
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