The function check fallback of SetTimer, Hotkey, etc doesn't check library?

Get help with using AutoHotkey and its commands and hotkeys
User avatar
CerpinTaxt
Posts: 13
Joined: 23 Dec 2017, 12:16

The function check fallback of SetTimer, Hotkey, etc doesn't check library?

06 Jun 2018, 20:14

[Moderator's note: Topic moved from Bug Reports.]

I'm not sure if the devs will consider this a bug or working as intended honestly.

A few of the commands like SetTimer check for a label and if one is not found they check for a function instead. However these commands don't check the libraries for said function.


Works:

Image

Works:

Image

Does not work:

Image
Image
and with just one faint glance back into the sea
the mollusk lingers with its wandering eye
Helgef
Posts: 4298
Joined: 17 Jul 2016, 01:02
Contact:

Re: The function check fallback of SetTimer, Hotkey, etc doesn't check library?

07 Jun 2018, 01:08

This is documented in libraries of functions,
Only a direct function call such as MyFunc() can cause a library to be auto-included. If the function is only called dynamically or indirectly, such as by a timer or GUI event, the library must be explicitly included in the script. For example: #Include <MyFunc>

Return to “Ask For Help”

Who is online

Users browsing this forum: demex, F4Jonatas, mrvette134, Smile_ and 140 guests