[Tool] AutoHotkey scripts

I’d like to inform you of the 2 things I’ve learnt today

  1. Don’t use such style

Send % key

If you had “Space” there, it will send S, P, A, C, E separately. If figured it out because I had Energy Potion on E in Titan quest.

  1. This is one is more serious. If you create Timer in the following way multiple times

(1st parameter of SetTimer [its label] is a dynamic function object)

        fn := ObjBindMethod(this, "Show")
        SetTimer, %fn%, -%hide_duration%

The timer doesn’t get overwritten (and is executed incorrectly multiple times) as it is the case with simple

SetTimer, Show, -%hide_duration%

How GDAutocaster was working well using it incorrectly I do not know since I use this dynamic method of creating timers with arguments in every class / feature multiple times although not always with the intention of overwriting timers but certainly at least in some places.