Sign in to follow this  
Followers 0
LostAtC

Tortoise SVN Commit Problem

6 posts in this topic

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")

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

whatever Edited 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 ...
 

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

whatever Edited 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 ...
 

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

If you do not like any popups, you can use the svn-tools directly. You can download the binaries here

Edited 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

Share this post


Link to post
Share on other sites

Using "ControlClick" worked perfectly.

Thanks!

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
Sign in to follow this  
Followers 0