spoolin1 Posted April 11, 2019 Share Posted April 11, 2019 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? Link to comment Share on other sites More sharing options...
jdelaney Posted April 11, 2019 Share Posted April 11, 2019 (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 April 11, 2019 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. Link to comment Share on other sites More sharing options...
spoolin1 Posted April 16, 2019 Author Share Posted April 16, 2019 (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 April 16, 2019 by spoolin1 Link to comment Share on other sites More sharing options...
jdelaney Posted April 16, 2019 Share Posted April 16, 2019 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. Link to comment Share on other sites More sharing options...
jchd Posted April 16, 2019 Share Posted April 16, 2019 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 hereRegExp tutorial: enough to get startedPCRE 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) Link to comment Share on other sites More sharing options...
rfxcasey Posted January 25, 2022 Share Posted January 25, 2022 Did the OP ever get this sorted, I'm having this issue? Link to comment Share on other sites More sharing options...
ad777 Posted January 25, 2022 Share Posted January 25, 2022 (edited) @spoolin1 try ControlSend:(local user - Win10) $ret = ControlSend("Untitled - Notepad","","Edit1","hello") if $ret = 0 Then MsgBox(0,"","window/control is not found.") if $ret = 1 Then MsgBox(0,"","window/control found.") if it return 1 but not send that mean there is issue, Edited January 26, 2022 by ad777 iam ِAutoit programmer. best thing in life is to use your Brain to Achieve everything you want. 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