Sign in to follow this  
Followers 0
madsnb

Known workaround for computer being locked

5 posts in this topic

#1 ·  Posted (edited)

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.

autoit.au3

Edited by madsnb

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0