I'm constantly trying to run quick tests in AHK. It's a pain to have to think of a new hot key, write all the environmental variables, save, build, etc. I'd like to be able to type out a short test, press enter, and get some feedback from AHK.
For instance: I'd type Run, Notepad
in an AHK console, press enter, Notepad opens, and some feedback is displayed in the console. Then I can go back, play around with options, press enter, etc. So it would look like this:
> Run, Notepad
Running Notepad.exe
Activating Window Untitled - Notepad, ahk_class Notepad, ahk_id ...
Window Active
> Run, NotARealThing
Error: Could not find 'NotARealThing'
>
GirlGamer
's "Script for quick run of scripts" However...
Run, TempScript.ahk
because the system could not find it, even though FileAppend
is supposed to create a new file if it doesn't exist.^!W
) is pretty close to what I'm looking for. But, I'd like to press Enter and have it run, and Shift+Enter goes to the next line... AutoHotkey Console Log/WriteLine Equivalent.
Initially I thought this was the solution, but it says "If you run this from console..." What console?
Furthermore, it claims you can do something like > AutoHotKey test.ahk
but I see a few problems with this:
AutoHotKey
as a command. I'm sure this means I simply need to add the path to AutoHotKey.exe to my PATH variable.
SCiTE4AHK but I don't see anything that says "console" there...
Hachi
's answer to "Best way for debug ?"
"so run from console
myscript.ahk >log.txt
ormyscript.ahk |more
"
Also a bunch of Google search results. But it seems like everything refers to the console, never how to actually get to the console. What am I missing?
Ahk doesn't work like that, out of the box. The Console they are referring to is the Windows Command console. Now with that said:
Check this out: https://github.com/G33kDude/Console And this: https://autohotkey.com/boards/viewtopic.php?f=6&t=6113
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