[request] Sikuli Automation fails for lock machine --- ideas how to do that are welcome

Bug #1251957 reported by Pankaj Sukale
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Confirmed
Low
RaiMan

Bug Description

Steps to reproduce.
1.Create a sikuli script in sikuli ide.
2.Try to run the script when machine is unlock.
3.It will work fine.
4.Now try to execute same script when machine is lock.

Expected:-Script should run.
Actual:-Script fails with following error
[log] App.open C:\Program Files (x86)\Mozilla Firefox\Firefox.exe(3712)
[log] App.focus Firefox(0) #0
[error] App.focus failed: Firefox not found

Machine details:-
Op system:-Win 7
Proccessor:-I5
Sikuli details

Regards,
Pankaj Sukale
+919096652067

description: updated
Revision history for this message
RaiMan (raimund-hocke) wrote :

Sikuli scripts cannot be run on locked screens.

Sikuli can only act on what a user sees on the screen. On a locked screen you see nothing and hence Sikuli cannot either.

Revision history for this message
Pankaj Sukale (pankajsukale) wrote :

Hi,

  Thanks for your reply.
I want to make you aware of one thing that automation is done for overnight or no manual intervention executions. In software industry automation executions are done with locked screen only. I just want to ask, are you guys looking forward to overcome this drawback?

 Regards,
Pankaj Sukale
+919096652067
+919028403753

description: updated
description: updated
Revision history for this message
RaiMan (raimund-hocke) wrote :

Might be, that "In software industry automation executions are done with locked screen only", but again: the currently used approach in Sikuli (using Java Robot) does only allow to access the real screen (which is what you see when looking at the monitor).
It does not work on headless machines either.

The only available workaround is to run the script in a virtual machine, that simulates real screen, keyboard and mouse while the real screen might not show the VM window (VM window minimized or screen locked). The convenience options to automatically catch the mouse must be switched off.

Until someone has a good idea how to overcome that generally, things will not change in Sikuli.

Revision history for this message
Pankaj Sukale (pankajsukale) wrote :

Hi,

Thanks for your reply. Hopping that you guys will be able to overcome this issue in future.
I personally fill that it's a good tool.

Regards,
Pankaj Sukale

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → RaiMan (raimund-hocke)
summary: - Sikuli Automation fails for lock machine.
+ Sikuli Automation fails for lock machine --- ideas how to do that are
+ welcome
RaiMan (raimund-hocke)
summary: - Sikuli Automation fails for lock machine --- ideas how to do that are
- welcome
+ [request] Sikuli Automation fails for lock machine --- ideas how to do
+ that are welcome
Revision history for this message
Naresh (naresh-shenishetty) wrote :

The given work around i.e running script on VM also not working. The result is same when the screen is locked script test cases are failing and test cases are passed when screen is not locked.

Can any body please help here on work around.

Revision history for this message
Selin (selingungor01) wrote :

Is there any future implemented for this problem?

Revision history for this message
RaiMan (raimund-hocke) wrote :

@Selin
the future of this problem (builtin "feature" ;-) will persist in the future: A visual automation using Java Robot class can only run on unlocked screens.

Revision history for this message
RaiMan (raimund-hocke) wrote :

@Selin
this problem (builtin "feature" ;-) will persist in the future: A visual automation using Java Robot class can only run on unlocked screens.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.