Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
需要windows中的启动脚本才能发送ALT+;F11钥匙?_Windows_Batch File_Cmd - Fatal编程技术网

需要windows中的启动脚本才能发送ALT+;F11钥匙?

需要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

我们在瘦客户机上使用共享桌面。默认情况下,它带有窗口屏幕,但按Alt+F11键将恢复为全屏。因此,我们需要一个脚本在Windows登录时延迟执行。

希望登录vbscript能为您工作。将其附加到现有登录脚本或将其另存为“.vbs”文件

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