24.01.2019, 15:27
(24.01.2019, 15:14)Daniel. Wrote: As admin mention do it like that. Tag all windows and put tag in this script. Add description to windows object, this will be displayed in email as window name.
Code:tagname = 'windows'
windows=''
for i, object in ipairs(grp.tag(tagname)) do
if object.value then
windows= windows .. object.comment..', '
end
end
-- make sure mail settings are set in user function library before using this function
subject = 'E-mail test'
message = 'open windows are '..windows
mail('user@example.com', subject, message)
Perfect Thank you.
B.R.