作者:手机用户2502930417 | 来源:互联网 | 2023-01-21 02:56
IhaveanHTAthatisdisplayedwhenabackuproutineiscompleteandIdliketobeabletomanipul
I have an HTA that is displayed when a backup routine is complete and I'd like to be able to manipulate the HTA via VBS, showing whether or not a series of folders were backed up correctly.
我有一个HTA,当备份例程完成时显示,我希望能够通过VBS操作HTA,显示是否正确备份了一系列文件夹。
So, using the ID of an element within the HTA, is it possible to add a class to the element?
那么,使用HTA中元素的ID,是否可以向元素添加一个类?
For example -
例如 -
If result = true Then {add class 'success' to id 'result-documents'}
如果result = true那么{将类'成功'添加到id'结果文档'}
Here is my VBS for showing the HTA -
这是我的VBS展示HTA -
Shell.Run COMPLETED_MESSAGE_PATH, 0, True
And example of an element that I wish to target is as below. For example, here I'd like to add a class attribute (the class name varies) to the element with ID 'result-documents' -
我希望定位的元素示例如下。例如,在这里我想添加一个类属性(类名不同)到ID为'result-documents'的元素 -
Documents
1 个解决方案