Sign in to follow this  
Followers 0
=sinister=

Send() Not Working in Administrator Mode

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



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]

Share this post


Link to post
Share on other sites

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.

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