LostAtC Posted March 21, 2010 Share Posted March 21, 2010 Trying to use the command line Tortoise SVN to commit a file but the GUI pops up and the script pauses. I've tried dozens of combinations but can't get this simple script to run. TIA for any help - this is my first script in AutoIt. ;run tortoiseproc Run('tortoiseproc.exe /command:commit /path:"C:\!Temp\XML\rjbdata.xml" /logmsg:"Nightly Update" /notempfile /closeonend:1') ;wait for it to start WinWaitActive("Commit") ;send ALT-O to close the GUI Send("!o") ;wait for the finished window WinWaitActive("RJBData") ;send ALT-O to close the GUI Send("!o") Link to comment Share on other sites More sharing options...
MvGulik Posted March 21, 2010 Share Posted March 21, 2010 (edited) whatever Edited February 7, 2011 by MvGulik "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ... Link to comment Share on other sites More sharing options...
LostAtC Posted March 22, 2010 Author Share Posted March 22, 2010 I thought that AutoIt would be able to deal with the popup by recognizing the window and sending the proper keystrokes. Anyway thanks for the quick response. Link to comment Share on other sites More sharing options...
MvGulik Posted March 22, 2010 Share Posted March 22, 2010 (edited) whatever Edited February 7, 2011 by MvGulik "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ... Link to comment Share on other sites More sharing options...
ProgAndy Posted March 22, 2010 Share Posted March 22, 2010 (edited) If you do not like any popups, you can use the svn-tools directly. You can download the binaries here Edited March 22, 2010 by ProgAndy *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
LostAtC Posted March 22, 2010 Author Share Posted March 22, 2010 Using "ControlClick" worked perfectly. Thanks! 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