Tool AutoHotKey

perkeyone

something clever
Reaction score
71
A very useful program.
Used to easily create keyboard and mouse macros.
(A macro allows you to repeat key stokes and or mouse movements and clicks several times very quickly and easily)
This program has many applications in WE and can be extremely useful in almost any other program.

Website
The website has its own forum and tutorials.

Ill give some examples of how useful it is when applied to WE.

Lets say i want to make an ability that has 100 levels.
and i want to make each tool tip display the damage of my ability.
The built in autofill cant do something like that.
Its damage will be for instance 50 + 10x (the level of the spell)
All the tooltips will show a different damage value.
Autohotkey has its own programming language and can use loops, variables and expressions.
Instead of a macro that pastes rapidly I can make one that correctly types out individual tool tips for each level of my spell to include typing out the damage.

Not only can it be useful for filling out fields in the object editor, but it can be used to quickly make triggers.
If i get stuck making some horrendous GUI trigger that has many parts that are very similar such as a trigger that detects a chat message for any player.
Trigger:
  • Player - Player 1 (Red) types a chat message containing -random as An exact match

Normally I would have to copy this action paste it, then hit enter, click Player 1 (Red), hit down, then hit enter twice, just to get
Trigger:
  • Player - Player 2 (Blue) types a chat message containing -random as An exact match

Then i have to repeat that for each player up to 12.
But with a macro I can accomplish the same task much more quickly.

Outside of WE there are many more applications but i wont go into that.

here is another example
this one is one that could be used for unique tooltips
(btw i didnt have to type the green part it is automatically there whenever i make a new ahk file)
Code:
[COLOR="Green"];
; AutoHotkey Version: 1.x
; Language:       English
; Platform:       Win9x/NT
; Author:         A.N.Other <[email protected]>
;
; Script Function:
;	Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.[/COLOR]
#MaxHotkeysPerInterval 200


lv = 1
z::
send {enter}|cffffcc00I|rce Finger - [|cffffcc00Level %lv%|r]{enter}{down}
lv += 1
return
x:: {z 100}

all i have to do is click the first field then hit x
and it changes all 100 fields to correctly display the level of the ability
pretty nifty huh?

heres one that would make tooltips for damage
Code:
[COLOR="Green"];
; AutoHotkey Version: 1.x
; Language:       English
; Platform:       Win9x/NT
; Author:         A.N.Other <[email protected]>
;
; Script Function:
;	Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.[/COLOR]
#MaxHotkeysPerInterval 200


lv = 1
z::
send {enter}Throws a magical hammer at a target enemy unit, dealing <AHtb,DataA%lv%> damage and stunning the target for <AHtb,Dur%lv%> seconds.{enter}{down}
lv += 1
return
x:: send {z 10}
 
Reaction score
107
WE already has an auto fill function built into the object editor which pretty much does exactly what you described in the example. Displaying the damage of the spell can be done through data tags too.

But, it might still be useful for unique tool tips as you said, and possibly GUI triggering...
 

perkeyone

something clever
Reaction score
71
where is the autofill?
ive never used it obviously
ill just remove the examples about pasting if it can already be done an easier way

haha wow i never used that before its pretty usefull but like you said it cant do some things that ahk does.
btw data tags have to be unique if the damage changes at different levels so ahk would be useful there too
 
Reaction score
107
Auto fill increments the data tag as well. eg. At level 1 the data tag might be <A000,DataA1>. When you auto fill, it will increment the A1 to A2 and so on. It only works if the number matches the level. ie level 1 = A1, level 2 = A2. But if level 2 = A1, then all the others will A1.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top