Jump to content
spoolin1

Windows 10 needing admin to run Send commands?

Recommended Posts

Did something change between windows7 and windows10 that you have to run as elevated rights in order to use send command?

 

Send("some text or key strokes here")
^this works fine on Win7 & WinServer2008  but on Win10 the cursor will just stop blinking and no text is sent to textbox.

 

#RequireAdmin
Send("some text or key strokes here")

This will work if logging in as admin. 

 

All other autoit commands work great just Send or controlSend doesn't want to work.

Im writing scripts for myself and others in my group at work and not allowed to be local admins so trying to figure out a workaround.
Has anyone else seen similar problems with Windows 10?   

 

 

 

 

Share this post


Link to post
Share on other sites
Posted (edited)

Everything depends.  If the application you are performing the 'Send' at is running with Elevated Permissions (example: right click an exe, run as administrator), your script/scite must also run elevated to interact with it.

This is the same in win7, as is in win8.* as in win10, as in any server version 2k*...probably also XP and the older stuff as well.

Edited by jdelaney

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites
Posted (edited)

Thanks for the feedback jdelaney.   I'm needing to run scripts as standard user, the script is sending text or keystrokes to another application that is also being ran as a standard user.  I'm compiling the scripts as a standard user aswell.  It hunch is that the autoit send command is being blocked by some security software.  Or maybe more like security software is blocking any type of script or macro from sending keys to other applications.  I have a Logitech G13 that has a qucikmacro text record and playback function.  This worked great in windows 7 but now with 10 the macros will record but not play back, all other fuctions of G13 ar working great.  Ive tried some other script and macro tooks.  Auto hotkey and pullovers macro creator text/keys are being blocked as well.

The big unknown now is whether security software is requiring local admin rights in order to allow text and key sends or did microsoft make this a requirement for Win10.  I dont see these problems on my home personal windows 10 machines.  I also dont have the security software installed and am not on a domain controller at home. I've tried local admin and local standard accounts with autoit scripts and they work great, so does the G13.   Im thinking a good next step would be to ask if the security software could be temporarily disabled in order to troubleshoot if one of them are the culprit.    

Edited by spoolin1

Share this post


Link to post
Share on other sites

Add in logging to see what is passing or failing.   add a msgbox at the top of your script to see if it's being stopped by your security software


IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites

It's known that typical Logitech enhanced keyboards driver create issues with cut/paste and such operations in some situations. I had to get rid of the G15 driver under W7 for everything to work normally again.

I have no clue if this is also the same case with G13 and W10, so read me with some salt at hand.


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

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

×
×
  • Create New...