Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/vba/17.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
Office VBA方法参数(powershell)_Vba_Powershell_Methods_Parameters - Fatal编程技术网

Office VBA方法参数(powershell)

Office VBA方法参数(powershell),vba,powershell,methods,parameters,Vba,Powershell,Methods,Parameters,我正在创建一个脚本来操作一些PowerPoint演示文稿文件。我需要使用的方法之一是createvideo方法 上面的链接显示了参数及其类型,但我不知道范围是什么 e、 g 质量是整数,但它是1-100吗?我真的不想通过反复试验找出答案 有没有一个非常简单的方法来找出这些信息 下面是我正在运行的脚本的一个片段 $powerpoint = New-Object -comobject powerpoint.Application $powerpoint.visible = [Microsoft.O

我正在创建一个脚本来操作一些PowerPoint演示文稿文件。我需要使用的方法之一是createvideo方法

上面的链接显示了参数及其类型,但我不知道范围是什么

e、 g

质量是整数,但它是1-100吗?我真的不想通过反复试验找出答案

有没有一个非常简单的方法来找出这些信息

下面是我正在运行的脚本的一个片段

$powerpoint = New-Object -comobject powerpoint.Application
$powerpoint.visible = [Microsoft.Office.Core.MsoTriState]::msoTrue

$powerpoint.Presentations.Open("C:\temp\file.ppt")
$SavePath = "C:\temp\Presentation.mp4"
$powerpoint.ActivePresentation.CreateVideo($savepath,$true,"",1540,30)
30是质量参数

欢迎你的想法


Sam

如果你看,你会发现质量是第6个参数,参数3、4、5和6都是INT,是的,
quality
是一个百分比,所以1-100很酷,我错过了最后一个参数我想我在评论中的链接也解释了这些参数的含义谢谢,我以前看过这个链接,我确实把它放在了我原来的帖子里。我只是不知道是否有办法找出这个方法和其他方法的有效参数值