=sinister= Posted April 17, 2010 Share Posted April 17, 2010 I have two of the same windows open. One is ran as an administrstor (it has to for it to open). Send() will only work for the window that is not opened as an administrator. I am not using controlsend(), just the normal send() function. Controlsend() won't work for either. Also, mouseclicks are ignored too for the window that is running as an administrator. Link to comment Share on other sites More sharing options...
Fire Posted April 17, 2010 Share Posted April 17, 2010 BTW This works for me in win xp sp2 #RequireAdmin Run("cmd.exe /c " & "notepad.exe",@SystemDir,@SW_HIDE) And another script. it executed under Restricted Privilegies. It works without any problem in m OS. #cs This script executed under Restricted user #ce WinWaitActive("[CLASS:Notepad]") Send("Today's time/date is {F5}") But it works in %homedrive%\Temp directory. Try replace your script to another location for example c:\data or etc. It must work. [size="5"] [/size] Link to comment Share on other sites More sharing options...
Richard Robertson Posted April 17, 2010 Share Posted April 17, 2010 It's a permissions issue. Functions like "Send" can only access programs of equal or lesser authorization. Meaning admins can touch standard user data, but standard users cannot touch admin data. Disabling UAC will stop your issue, but what you need to do is just run your script as admin. 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