Page 1 of 1

#Persistent

Posted: 12 Apr 2014, 08:57
by jaco0646
What is the use case for restoring the #Persistent directive?

Re: #Persistent  Topic is solved

Posted: 12 Apr 2014, 09:36
by fincs
#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.