RoadHazard Posted February 12 Posted February 12 I’m a new user, so go easy on me… I’m simply trying to auto-click the “Yes” option on a Windows 10 UAC prompt that pops up when I launch a specific program. I’ve worked through the tutorials no problem, but the UAC window in particular seems to behave differently from normal windows. AutoIt can’t “see” the Yes/No option buttons and my script pauses indefinitely. What am I missing?
Nine Posted February 12 Posted February 12 I don't believe we are allowed to discuss bypassing security measures (see forum rules), unless a moderator tells the contrary. But what we can discuss is the way to disable UAC thru registry. Just set to 0 the following key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA You will need to restart your computer “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Multi-Threading Made Easy
RoadHazard Posted February 12 Author Posted February 12 Interesting. I hadn’t considered this a security issue, since it’s my own machine. I’m just trying to streamline the system restart after a power failure. Your registry tweak looks like the equivalent of moving the UAC notification slider all the way to “never notify.” I’d like to avoid that if I can, because you never know when some other program will pop up a legitimate UAC that I’m not expecting. Turning off all notifications all the time feels too drastic. What I *want* is to tell Windows, “yes, I already know about this program and I promise it’s safe,” but there doesn’t seem to be a way to do that. Auto-clicking the UAC seemed like the next-best solution.
Developers Jos Posted February 12 Developers Posted February 12 3 hours ago, RoadHazard said: What am I missing? Maybe consider that this is a way to secure Windows.? When you have Admin rights to the Computer, you have multiple ways of installing things, but not a scripted foreground install. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
argumentum Posted February 12 Posted February 12 1 hour ago, RoadHazard said: What I *want* is to tell Windows, “yes, I already know about this program and I promise it’s safe,” Add it to TaskSched. and to run with admin rights. on login. ( no coding needed ) This is how I did it ( here ) but it'll take brainstorming to adapt it to your code. Or, there are UDFs for that in this forum too. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
Nine Posted February 12 Posted February 12 1 hour ago, RoadHazard said: What I *want* is to tell Windows, “yes, I already know about this program and I promise it’s safe Sadly your wish will not come true. This is why Windows implemented a lot of security nets to disable temptations to take over computers. And I am not quite sure about your objectives, what is it so complicated for a user to press a Yes button ? Musashi 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Multi-Threading Made Easy
RoadHazard Posted February 13 Author Posted February 13 3 hours ago, Nine said: And I am not quite sure about your objectives, what is it so complicated for a user to press a Yes button ? Because I’m often not physically in front of the machine when it restarts after a power failure. It may be days before I can stand in front of it and click the stupid Yes button. I’d hoped to automate this, but I guess not.
argumentum Posted February 13 Posted February 13 13 minutes ago, RoadHazard said: I’d hoped to automate this, but I guess not. Ain't much about your emotional stand that I can do for you, but the answer I gave you is sound. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
RoadHazard Posted February 13 Author Posted February 13 18 hours ago, argumentum said: Add it to TaskSched. and to run with admin rights. on login. ( no coding needed ) Thanks. I’ll try that next. argumentum 1
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