需要windows中的启动脚本才能发送ALT+;F11钥匙?
我们在瘦客户机上使用共享桌面。默认情况下,它带有窗口屏幕,但按Alt+F11键将恢复为全屏。因此,我们需要一个脚本在Windows登录时延迟执行。希望登录vbscript能为您工作。将其附加到现有登录脚本或将其另存为“.vbs”文件需要windows中的启动脚本才能发送ALT+;F11钥匙?,windows,batch-file,cmd,Windows,Batch File,Cmd,我们在瘦客户机上使用共享桌面。默认情况下,它带有窗口屏幕,但按Alt+F11键将恢复为全屏。因此,我们需要一个脚本在Windows登录时延迟执行。希望登录vbscript能为您工作。将其附加到现有登录脚本或将其另存为“.vbs”文件 Set WshShell = CreateObject("Wscript.Shell") 'Create wshell object WScript.Sleep(5000) 'Lets wait 5 seconds WshShell.AppActivate "EX
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