Natro MacroNM
Natro Macro2y ago
46 replies
rubber-blue

How to use ace bot

Recently we got a wonderful addition to this channel called "ace bot"

With this bot you can run simple ahk scripts that take less than 7 seconds. The script usually takes around 0.62-0.65 seconds just to run

The help command is a simple .help and go to the last page. Else, the ace bot has three slash commands: /docs /docs2 /msdn

/docs is a command to search the ahk v1 documentation for whatever you input

/docs2 is a command to search the ahk v2 documentation for whatever you input

/msdn is a command to search the microsoft documentation for whatever you input

The most important feature of the ace bot is the .ahk and the .ahk2 command.
With those commands you can have your code on the line below and it will run it for you!

If you want to, you can add a codebox around your code but not around the command itself.

So this would work:
.ahk
Msgbox Hello World!

The command msgbox will just output what a regular msgbox would show on the screen

With the ace bot also comes a custom function called Print() which is ace bot exclusive and doesnt work in regular ahk scripts. This is what you should use for the output rather than msgbox because it can also output arrays for example

.ahk
Arr := ["Hello", "World","!"]
Print(arr)

Could show you that exact array which msgbox cant

Use this bot to help others with the .ahk and docs command or use it to test something related to the current thread
Was this page helpful?