Create a gist now

Instantly share code, notes, and snippets.

Autohotkey file to use NotePad++ with the Julia console for REPL-oriented development
;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
;copy clipboard to julia console
; then re-activate Notepad++ and move the cursor down to support stepping through
WinGetActiveTitle, InitTitle
IfWinExist, julia.bat - Shortcut
MouseMove, 60, 60
MouseClick, Right
if RegExMatch(InitTitle, "- Notepad\+\+$")
MsgBox Julia console not found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment