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
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 does AutoHotKey use? AutoHotkey is programmed in C++. The source code is open source and available to download.
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.
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.
This may also be something like what you're looking for
Forum Topic link
GitHub link
Hope it helps
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With