Ok I just put this one together. It works as long as there is only one previous window open. I use Vim as my primary text editor. Maybe someone with better ahk knowledge can help me out here
Edit: here is a better version
If WinActive ahk_class MozillaUIWindowClass
{
^!c::
{
Send, {CTRLDOWN}c{CTRLUP}
Sleep, 100
Run "E:\programs\Vim\vim72\gvim.exe"
WinWait, [No Name] - GVIM,,2
WinActivate
Sleep, 100
Send, {CTRLDOWN}v{CTRLUP}
}
return
}
}