#Persistent Topic is solved

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: 527
Joined: 30 Sep 2013, 14:17
Location: Seville, Spain
Contact:

Re: #Persistent  Topic is solved

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 11 Pro (Version 22H2) | AMD Ryzen 7 3700X with 32 GB of RAM | AutoHotkey v2.0.0 + v1.1.36.02
Get SciTE4AutoHotkey v3.1.0 - [My project list]

Return to “AutoHotkey Development”

Who is online

Users browsing this forum: No registered users and 38 guests