And a very good day to you Sir
I hope you are safe and doing very well Sir
I am trying to Evaluate ROBOTask for the following Task
I would like to create a Task in ROBOTask to Continuously Monitor and Send an Email whenever a Program called Telegram.exe Opens up a Windows Notification Window
I have already created the Email sending part and have tested that it works
I am at the part where I have to add in the Trigger Part
For the Trigger - I use Windows Watcher to Watch for the "Telegram" Caption Window
Now ever when I save my template
Nothing runs at all unless i click the run task now button
Meanwhile the Telegram.exe program has triggered a Windows Notification Window multiple times over and over
May I please kindly ask how can I get this Template to Continuously Run in the Background to monitor for a Telegram Notification Window and trigger an email sending event every time the Telegram.exe program opens a windows notification window
Hope to hear from you soon
Thank you very much for your time, help, patience and kind understanding
Kind Regards as Always Sir
Continuously monitor Telegram.exe for Windows Notification Window and send and Email if the Notification Window is found
-
- Posts: 1
- Joined: Wed Jun 11, 2025 11:34 pm
Re: Continuously monitor Telegram.exe for Windows Notification Window and send and Email if the Notification Window is f
I created small test task (see below). It works.
Save the text of the task to a file and use menu Task->Import to import the task into RoboTask.
Also you can simply copy task text and paste it into the task list.
Do not forget to enable the task after importing.
But please note that Window Watcher trigger works only within your user session. Trigger don't see any windows in another user session
Save the text of the task to a file and use menu Task->Import to import the task into RoboTask.
Also you can simply copy task text and paste it into the task list.
Do not forget to enable the task after importing.
But please note that Window Watcher trigger works only within your user session. Trigger don't see any windows in another user session
Code: Select all
;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|307868550
Comment=STRINGLIST
ContinueOnError=INTEGER|0
DisableOnError=INTEGER|0
DoNotStopWhenShutdown=INTEGER|0
Events=FOLDER
ExternalName=STRING|"Task1583"
Hide=INTEGER|0
ID=INTEGER|-1468908563
LogOnAsUser=INTEGER|1
Name=STRING|"Catch telegram alert"
OnErrorTaskID=INTEGER|0
Priority=INTEGER|3
RestrictRESTAPIAccess=INTEGER|0
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
StepPause=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
[Actions\Action1]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""[{Time}, {DayOfWeek}, {Date}]"""
Params=FOLDER
[Actions\Action1\Params]
icon=STRING|"1"
msg0=STRING|"[{Time}, {DayOfWeek}, {Date}]"
msg1=STRING|"Hey, awake!"
msg2=STRING|"Telegram"
msgcount=STRING|"3"
playsound=STRING|"0"
showmessage=STRING|"1"
[Actions\Action2]
ActionID=STRING|"A_ROBOTASK_LOG"
Enabled=INTEGER|-1
Name=STRING|"Log Message"
Params=FOLDER
[Actions\Action2\Params]
expression=STRING|"3"
message=STRING|"Telegram notification !!!!"
mode=STRING|"0"
type=STRING|"1"
[Actions\Action3]
ActionID=STRING|"A_ROBOTASK_ALERT"
Enabled=INTEGER|-1
Name=STRING|"Show Notification"
Params=FOLDER
[Actions\Action3\Params]
colorscheme=STRING|"0"
defh=STRING|"1"
defw=STRING|"1"
duration=STRING|"5"
height=STRING|"76"
icon=STRING|"1"
kind=STRING|"0"
message=STRING|"Telegram alert!!!!"
position=STRING|"0"
title=STRING|"Telegram"
width=STRING|"330"
[Events]
Event1=FOLDER
[Events\Event1]
Enabled=INTEGER|-1
EventID=STRING|"E_WINDOW_WATCHER"
Name=STRING|"Window Watcher (TelegramDesktop)"
Params=FOLDER
UniqueID=INTEGER|1190903316
[Events\Event1\Params]
assignvariable=STRING|"0"
child=STRING|"0"
classexact=STRING|"0"
exact=STRING|"0"
hidden=STRING|"0"
usecaption=STRING|"1"
useclass=STRING|"0"
useparameter=STRING|"0"
watchfor=STRING|"1"
wincaption=STRING|"TelegramDesktop"
winclass=STRING|"Qt51517QWindowToolSaveBits"
Oleg Yershov