#Persistent Topic is solved

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


12 Apr 2014, 08:57

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

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.
Windows 10 x64 Build 18362 | AMD Ryzen 7 3700X with 32 GB of RAM | AutoHotkey v1.1.31.01
Get SciTE4AutoHotkey v3.0.06.01 - [My project list]

Return to “AutoHotkey v2 Development”

Who is online

Users browsing this forum: No registered users and 2 guests