This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Get object name
#3
(04.06.2021, 08:42)admin Wrote: Like this:
Code:
name = grp.find(event.dst).name

Thank you. 
Any quick tip on how to replace characteres in a string? eg: "AA2233_PV" needs to be changed to "AA2233_Alarm"

Found a way, string.gsub()

How will the os.sleep() work in a event script? if timer is started, will it be reset on next event change? or will the script pause untill the first sleep command is finished?
Reply


Messages In This Thread
Get object name - by tomnord - 04.06.2021, 08:35
RE: Get object name - by admin - 04.06.2021, 08:42
RE: Get object name - by tomnord - 04.06.2021, 09:19
RE: Get object name - by admin - 04.06.2021, 10:14
RE: Get object name - by tomnord - 04.06.2021, 11:33
RE: Get object name - by admin - 04.06.2021, 12:42
RE: Get object name - by tomnord - 04.06.2021, 12:49
RE: Get object name - by admin - 04.06.2021, 13:46

Forum Jump: