Jump to content

Send() Not Working in Administrator Mode


Recommended Posts

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...