Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I write a vbs script to add text to the header of a PM notification?

Former Member
0 Kudos

I am new to writing and using scripts so I'm hoping someone can help me fix the one I wrote.

Every couple of days we are required to add our initials to the end of the header text of PM notifications. I wrote a script to add the my initials "TR" and print the notification. The problem is that the entire header is replaced by my initials. I've added the lines of code (what I think are the correct lines) and the result below.

What I want: 8G-7B leaking fittingTR

What I get:TR

session.findById("wnd[0]/usr/subSCREEN_1:SAPLIQS0:1050/subNOTIF_TYPE:SAPLIQS0:1051/txtVIQMEL-QMTXT").text = "TR"
session.findById("wnd[0]/usr/subSCREEN_1:SAPLIQS0:1050/subNOTIF_TYPE:SAPLIQS0:1051/txtVIQMEL-QMTXT").caretPosition = 40

0 REPLIES 0