auotomate show error"Parameter 'VBScript to run': Syntax error."

Fang Wei 1 Reputation point
2022-04-13T12:55:24.403+00:00

after i record scrip and put the code into automate "Run VBScript" mode ,here shows the error "Syntax error." and i found it for this code"session.findById("wnd[0]/usr/btn%SAUART%APP%-VALU_PUSH").press" i don't know know how to fix it .i want t192690-screenshot-2022-04-13-200241.jpgo do multiple selection .

Sysinternals
Sysinternals
Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
1,240 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Richie G 0 Reputation points
    2023-09-04T21:55:32.8766667+00:00

    I'm getting the same error/issue, this is due to the % string. so you would need to add another "%" next to it, something like so:
    "wnd[0]/usr/btn%%SAUART%%APP%%-VALU_PUSH"

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.