Active Window Fail Detection (RoboTask 8.2.3)

Discuss RoboTask here
Post Reply
nehasaxena0284
Posts: 1
Joined: Sat Apr 03, 2021 6:54 pm

Active Window Fail Detection (RoboTask 8.2.3)

Post by nehasaxena0284 »

Hi,

I need help in detected an active window when the window machine is actually locked.
I have been able to successfully detect a window when the window is unlocked and I am logged in window but Window Active detection fails if I am logged off Window or have locked the window.

I am an administrator of Window machine and ROBOTASK is running as Administrator.

Please help me understand if it's a bug or it's feature behavior because my automation is unable to proceed due to failure detection of Active Window.

Thanks,
Neha Saxena
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Active Window Fail Detection (RoboTask 8.2.3)

Post by Oleg »

When you lock the console the active window is Windows Default Lock Screen
I tested the simple example:

Code: Select all

;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
 
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|0
CatID=INTEGER|397884660
Comment=STRINGLIST
ContinueOnError=INTEGER|0
DoNotStopWhenShutdown=INTEGER|0
Events=FOLDER
ExternalName=STRING|"Task1379"
Hide=INTEGER|0
ID=INTEGER|-1320335587
LogOnAsUser=INTEGER|1
Name=STRING|"Log Message..."
OnErrorTaskID=INTEGER|-1
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|2
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER

[Actions\Action1]
ActionID=STRING|"A_ROBOTASK_LOG"
Enabled=INTEGER|-1
Name=STRING|"Log Message"
Params=FOLDER

[Actions\Action1\Params]
message=STRING|"{CurrentWindowHandle} {CurrentWindowCaption}"
type=STRING|"3"

[Events]
Event1=FOLDER

[Events\Event1]
Enabled=INTEGER|-1
EventID=STRING|"E_GENERAL_CYCLIC"
Name=STRING|"Cyclic (every 2 sec)"
Params=FOLDER
UniqueID=INTEGER|-60085393

[Events\Event1\Params]
interval=STRING|"2"
notsatrtatactivation=STRING|"0"

When I lock the session I get such result

Code: Select all

-: 07.04.2021 15:34:59: 5308974 Windows Default Lock Screen
-: 07.04.2021 15:35:01: 5308974 Windows Default Lock Screen
-: 07.04.2021 15:35:02: 5308974 Windows Default Lock Screen
-: 07.04.2021 15:35:04: 5308974 Windows Default Lock Screen
-: 07.04.2021 15:35:06: 5308974 Windows Default Lock Screen
-: 07.04.2021 15:35:09: 5308974 Windows Default Lock Screen
Oleg Yershov
Post Reply