Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
user:geek:tricks [2023-07-15 12:57] – [String Manipulation] Add missing % on MsgBox geek | user: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 := " |
} | } | ||
+ | |||
+ | MsgBox, % sampleVariable | ||
</ | </ | ||
Line 184: | Line 188: | ||
MsgBox, Auto-execution not interrupted | MsgBox, Auto-execution not interrupted | ||
+ | |||
+ | ExitApp | ||
</ | </ | ||