Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers