I'm not very versed in python and am having trouble capturing the name of an event as a variable in a python script. Below is the script I'm trying to use to send text to a popup box in WMC.
Code: Select all
from socket import socket, AF_INET, SOCK_DGRAM
data = 'Caption|Message Text|30'
port = 11000
hostname = '127.0.0.1'
udp = socket(AF_INET,SOCK_DGRAM)
udp.sendto(data, (hostname, port))
When I setup the IP, everything works perfectly. Now, I'm trying to get the event name to show up in the popup box. I've tried using {eg.event.payload} but it simply displays the literal string "{eg.event.payload}".
How do I set the variables in a python script? Thanks!