gfcaim Posted April 14, 2010 Posted April 14, 2010 So I was having a lot of trouble with my code refusing to run on a locked workstation when a little demon told me to read the FAQ. Of course, the answer was there - don't use commands that talk about the 'active' window because the one I reference isn't really active. Makes sense when I think about it! I made may alterations and now it works. Result. So my question is - How do I know what I can and can't use on a locked workstation? - is there a definitive list?, or a tip? etc. From my Q you can tell that i'm a newbie but keen to learn this excellent tool... [font="Comic Sans MS"]"I'm not usually a praying man, but if you are up there, please save me Superman!" (Homer J. Simpson)[/font]
IndyUK Posted April 14, 2010 Posted April 14, 2010 I suppose in a nutshell, if you need to see something in order for the script to work, then it won't work if the workstation is locked. This is my personal experience and so far it's been spot-on!
gfcaim Posted April 14, 2010 Author Posted April 14, 2010 I understand that, but i would not have thought that something like 'send()' would have had a problem - or am I looking at this wrongly? [font="Comic Sans MS"]"I'm not usually a praying man, but if you are up there, please save me Superman!" (Homer J. Simpson)[/font]
Zedna Posted April 14, 2010 Posted April 14, 2010 Q21 http://www.autoitscript.com/wiki/FAQ#Why_doesn.27t_my_script_work_on_a_locked_workstation.3F Resources UDF ResourcesEx UDF AutoIt Forum Search
gfcaim Posted April 14, 2010 Author Posted April 14, 2010 yes, as mentioned in my original post I had read that in the FAQ [font="Comic Sans MS"]"I'm not usually a praying man, but if you are up there, please save me Superman!" (Homer J. Simpson)[/font]
IndyUK Posted April 15, 2010 Posted April 15, 2010 I understand that, but i would not have thought that something like 'send()' would have had a problem - or am I looking at this wrongly?Yes it would because you're sending keystrokes to a control, in which case the script would halt or stop because the control cannot render. Why don't you try a experiment using Notepad. I think there's code for this in the help. Run the script using a scheduled task making sure you've locked your workstation.
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