Jump to content



Photo

Known workaround for computer being locked


  • Please log in to reply
4 replies to this topic

#1 madsnb

madsnb

    Seeker

  • New Members
  • 2 posts

Posted 24 October 2007 - 10:08 PM

Hi,

I can only imagine that many of you guys have experienced the same issue as I, with the script stops because computer is locked (windows xp/2003 user lock).

Of course it stops since I use WinExists in my code, but I am interested in knowing what kind of workarounds people have come up with?

I have searched the forum, but I couldn't find any answer to my question..

Please enlighten me!

Regards
//madsnb

Attached script is made to test if navision attain web service can process actions, and it restarts application server if it can not.

Attached Files


Edited by madsnb, 24 October 2007 - 10:14 PM.








#2 Uten

Uten

    stupid is as stupid does..

  • Active Members
  • PipPipPipPipPipPip
  • 1,987 posts

Posted 24 October 2007 - 11:14 PM

I'm not sure as I usually disable the lock feature. But how about running your script as a service? If other applications can interact behind the lock screen, Autoit should be able to run behind there to.

#3 Zedna

Zedna

    AutoIt rulez!

  • MVPs
  • 8,409 posts

Posted 24 October 2007 - 11:31 PM

Look here

On locked station any window will never be active (active is only dialog with text "Press Ctrl+Alt+Del")

So generally don't use Send() MouseClick() WinActivate() WinWaitActive() etc.
Instead use ControlSend() ControlSetText() ControlClick() WinWait() etc.

#4 madsnb

madsnb

    Seeker

  • New Members
  • 2 posts

Posted 25 October 2007 - 07:46 AM

Look here

On locked station any window will never be active (active is only dialog with text "Press Ctrl+Alt+Del")

So generally don't use Send() MouseClick() WinActivate() WinWaitActive() etc.
Instead use ControlSend() ControlSetText() ControlClick() WinWait() etc.


But you see my big problem is that there are no shortkeys I can click, so thats why I am using MouseClick wth x, y coordinates. This can not be done by using ControlID or keyboard clicks.

#5 Zedna

Zedna

    AutoIt rulez!

  • MVPs
  • 8,409 posts

Posted 25 October 2007 - 04:36 PM

But you see my big problem is that there are no shortkeys I can click, so thats why I am using MouseClick wth x, y coordinates. This can not be done by using ControlID or keyboard clicks.


Take my informations as the FACT.
Make changes to your script based on my advice or it will not work.
MouseClick() us not usable in this situation.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users