WC3 Code Paste Helper
This small script helps you to paste Lua code from your editor to
Eikonium's Lua Debug Console
for execution. This console can accept multi-line input of code when you prepend
it with >
.
All you have to do:
- Copy code in editor
- Go to game and press CTRL+B to paste it as multi-line code
For example, copy this code:
x = 19
y = 2
print("x + y = ".. x + y)
will be pasted in game chat like this to be executed:
>x = 19
>y = 2
print("x + y = ".. x + y)
Watch the video here
wc3-helper.mp4
Features:
- Fast
- Multi-line paste
- Prepares code lines for you
- Skips empty lines
- Warns about lines too long for chat (max: 127 characters)
- Audio indicators
- Restores your clipboard after pasting in WC3
- Configurable
- Probably many false-positives by anti-virus software (complain to them about it)
- Why? AutoIt was used by scriptkiddies in the past, but it doesn't excuse a blanket ban that flags ALL au3 scripts as malware.
Usage instructions
- Open in-game console with
-console
- Start the program (download)
- Copy code
- Go to Warcraft III window
- Press
CTRL+B
Exit the program: there'll be an icon in tray. Right Click -> Exit. Note: if you just right click the icon, the script will be paused immediately. You need to unpause it to use.
Compilation instructions:
It uses AutoIt3, download and install it. Then you can double-click to run the .au3
file or right-click -> compile to EXE.