AutoHotkey: Launch external diff: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
(link to the existing german translation request)
No edit summary
Line 16: Line 16:
  Return
  Return


<BR>
----
<BR>Back to [[AutoHotkey]]


Back to [[AutoHotkey]]


 
[[de:AutoHotkey: Starte eine externes Dateivergleichsprogramm]]
[[de:AutoHotkey: Launch external diff]]

Revision as of 10:33, 27 September 2005

This script will launch my favorite diff program from within the internal compare window, taking the two files as parameters.

The hotkey is F2, adjust if necessary.

The program is Beyond Compare, adjust if necessary (WinMerge is given as another example, in the commented line).

~F2::
	if WinActive( "ahk_class TFileCompForm" )
	{
		ControlGetText sFile1, TEdit1
		ControlGetText sFile2, TEdit2
		Run "c:\Program Files\Beyond Compare 2\BC2.exe" "%sFile2%" "%sFile1%"
;		Run "c:\Program Files\WinMerge\WinMerge.exe" "%sFile2%" "%sFile1%"
		Return
	}
	Return




Back to AutoHotkey