Created
October 9, 2012 12:31
-
-
Save catawbasam/3858529 to your computer and use it in GitHub Desktop.
Autohotkey file to use NotePad++ with the Julia console for REPL-oriented development
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;RGUI-like AutoHotKey macros for copying code from Notepad++ to Julia console for REPL-oriented development | |
; control-F5 will select the current line of text in Notepad++ | |
; control-F6 pastes the clipboard contents into the Julia console, presses <Enter> | |
; then re-activates Notepad++ and moves the cursor down a line. | |
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
#Warn ; Recommended for catching common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
; | |
; # = windows key | |
; ^ = control | |
; ! = alt | |
; + = shift | |
;select and copy current line in Notepad++, which is assumed to be the active window | |
^f5:: | |
Send,{Home}+{End}^c | |
return | |
;copy clipboard to julia console | |
; then re-activate Notepad++ and move the cursor down to support stepping through | |
^f6:: | |
WinGetActiveTitle, InitTitle | |
IfWinExist, julia.bat - Shortcut | |
{ | |
WinActivate | |
MouseMove, 60, 60 | |
MouseClick, Right | |
Send,{Enter} | |
if RegExMatch(InitTitle, "- Notepad\+\+$") | |
{ | |
WinActivate,%InitTitle% | |
Send,{Down} | |
} | |
} | |
else | |
MsgBox Julia console not found. | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment