AutoHotkey: Launch external diff: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(New edit field classes broke the script, corrected) |
||
(8 intermediate revisions by 4 users not shown) | |||
Line 3: | Line 3: | ||
The hotkey is F2, adjust if necessary. | 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). | The program is [http://www.scootersoftware.com/download.php?c=dl_de| Beyond Compare], adjust if necessary ([http://winmerge.sourceforge.net/ WinMerge] is given as another example, in the commented line). | ||
~F2:: | ~F2:: | ||
if WinActive( "ahk_class TFileCompForm" ) | if WinActive( "ahk_class TFileCompForm" ) | ||
{ | { | ||
ControlGetText sFile1, | ControlGetText sFile1, TAltEdit1 | ||
ControlGetText sFile2, | ControlGetText sFile2, TAltEdit2 | ||
Run " | Run "%ProgramFiles%\Beyond Compare 2\BC2.exe" "%sFile2%" "%sFile1%" | ||
; Run " | ; Run "%ProgramFiles%\WinMerge\WinMerge.exe" "%sFile2%" "%sFile1%" | ||
Return | Return | ||
} | } | ||
Return | Return | ||
<BR> | |||
---- | |||
<BR>Back to [[AutoHotkey]] | |||
[[Category:AutoHotkey scripts|Launch external diff]] | |||
[[de:AutoHotkey: Starte eine externes Dateivergleichsprogramm]] |
Latest revision as of 14:05, 31 August 2011
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, TAltEdit1 ControlGetText sFile2, TAltEdit2 Run "%ProgramFiles%\Beyond Compare 2\BC2.exe" "%sFile2%" "%sFile1%" ; Run "%ProgramFiles%\WinMerge\WinMerge.exe" "%sFile2%" "%sFile1%" Return } Return
Back to AutoHotkey