Anthony Mastrean
Anthony Mastrean

Reputation: 22404

Is there an AutoHotkey REPL?

I know that you can run and live-reload ahk scripts. And I've seen the scintilla-based editor that provides debugging. But, is there any kind of command-line-based REPL?

I was testing the statement to get the active window's process name and thought it would really helpful!

ahk> WinGet, active, ProcessName, A
powershell.exe

Upvotes: 9

Views: 1370

Answers (2)

Myles Prather
Myles Prather

Reputation: 178

I open my AHK script NotePad (or Vim, or whatever). Then I add my test code as the first line. I have a hotkey defined to reload the script.

  MsgBox, Hello World

  ^+r::
  Reload
  Return

So I edit, then Ctrl-s, then Ctrl-Shift-R, test code runs. Works pretty well.

Upvotes: 2

blackholyman
blackholyman

Reputation: 1450

This may also be something like what you're looking for

enter image description here

Forum Topic link

GitHub link

Hope it helps

Upvotes: 3

Related Questions