Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
user:geek:tricks [2023-07-15 12:57] – [String Manipulation] Add missing % on MsgBox geekuser:geek:tricks [2023-07-15 13:02] (current) – [Writing Libraries] Adjust for better sandbox behavior geek
Line 167: Line 167:
  
 <runner ahk1> <runner ahk1>
 +global sampleVariable
 +
 Initialize() Initialize()
 { {
- Static Dummy := Initialize() + static _ := Initialize() 
- MsgBox, This init function has been called automatically+ sampleVariable := "Automatically Initialized"
 } }
 +
 +MsgBox, % sampleVariable
 </runner> </runner>
  
Line 184: Line 188:
  
 MsgBox, Auto-execution not interrupted MsgBox, Auto-execution not interrupted
 +
 +ExitApp
 </runner> </runner>