Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
like image 943
Anthony Mastrean Avatar asked Feb 15 '14 22:02

Anthony Mastrean


People also ask

What can you do with AutoHotkey?

AutoHotkey scripts can be used to launch programs, open documents, and emulate keystrokes or mouse clicks and movements. AutoHotkey scripts can also assign, retrieve, and manipulate variables, run loops and manipulate windows, files, and folders.

What programming language is AutoHotkey?

What programming language does AutoHotKey use? AutoHotkey is programmed in C++. The source code is open source and available to download.

How do I run an AHK script?

Run a ScriptDouble-click a script file (or shortcut to a script file) in Explorer. Call AutoHotkey.exe on the command line and pass the script's filename as a command-line parameter. After creating the default script, launch AutoHotkey via the shortcut in the Start menu to run it.

Where are AutoHotkey scripts stored?

ahk script is contained in your Documents folder, you can include or run various other AHK scripts, depending on whether you want them to run under one AutoHotkey instance, as one per script, or some combination of the two. Documentation on Include is fairly solid.


2 Answers

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

enter image description here

Forum Topic link

GitHub link

Hope it helps

like image 164
blackholyman Avatar answered Sep 20 '22 14:09

blackholyman


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.

like image 33
Myles Prather Avatar answered Sep 20 '22 14:09

Myles Prather