madsnb Posted October 24, 2007 Share Posted October 24, 2007 (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 October 24, 2007 by madsnb Link to comment Share on other sites More sharing options...
Uten Posted October 24, 2007 Share Posted October 24, 2007 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. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
Zedna Posted October 24, 2007 Share Posted October 24, 2007 Look hereOn 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. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
madsnb Posted October 25, 2007 Author Share Posted October 25, 2007 Look hereOn 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. Link to comment Share on other sites More sharing options...
Zedna Posted October 25, 2007 Share Posted October 25, 2007 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. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now