Sean M Posted August 31, 2006 Share Posted August 31, 2006 This is bugging the heck outta me. I'll show the code and then explain after. _RunDOS('"C:\GDRSetupTemp\GDR EventLog Client.reg"') WinWaitActive("Registry Editor", "Are you sure you want to add the information in C:\GDRSET~1\GDREVE~1.REG to the registry?") ControlClick("Registry Editor", "Are you sure you want to add the information in C:\GDRSET~1\GDREVE~1.REG to the registry?", 6) _RunDOS('"C:\GDRSetupTemp\GDR EventLog Server.reg"') I execute the rundos command and then a window pops up asking me if I'm sure that I want to registry the file. I have it waiting until the window pops up and then having it press the yes button. But it is not seeing the window that is poping up. I have tryed most of the 'Win' commands to try it, but to no avail. I must be missing something so obvious that I can't figure it out. Thanks in advance Link to comment Share on other sites More sharing options...
MHz Posted August 31, 2006 Share Posted August 31, 2006 (edited) _RunDOS('RegEdit /s "C:\GDRSetupTemp\GDR EventLog Client.reg"') Use /s on regedit to silently do it Edit: Changes position of the leading double quote Edited August 31, 2006 by MHz Link to comment Share on other sites More sharing options...
Developers Jos Posted August 31, 2006 Developers Share Posted August 31, 2006 This is bugging the heck outta me. I'll show the code and then explain after._rundos is using runwait(), are you sure the script continues ?This can be checked with Opt("TrayIconDebug", 1) 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. Link to comment Share on other sites More sharing options...
Sean M Posted August 31, 2006 Author Share Posted August 31, 2006 That makes perfect sense and I will now beat myself because I didnt think of it...lol Thanks Sean 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