#Persistent

Discuss the future of the AutoHotkey language
jaco0646
Posts: 10
Joined: 17 Oct 2013, 19:28

#Persistent

12 Apr 2014, 08:57

What is the use case for restoring the #Persistent directive?
User avatar
fincs
Posts: 500
Joined: 30 Sep 2013, 14:17
GitHub: fincs
Location: Seville, Spain
Contact:

Re: #Persistent

12 Apr 2014, 09:36

#Persistent wrote:Some cases where this directive might be needed (if there are no running threads or hotkeys, timers, etc.) include:
  • Scripts which use RegisterCallback and DllCall to respond to events, since those functions don't make the script persistent.
  • Scripts which create or retrieve COM objects and use ComObjConnect to respond to the object's events.
fincs
Windows 10 x64 Build 17134 / AutoHotkey v1.1.29.01
Get SciTE4AutoHotkey v3.0.06.01 - [My project list]

Return to “AutoHotkey v2 Development”

Who is online

Users browsing this forum: Bubo_Bubo and 10 guests