Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| user:geek:tricks [2023-07-15 12:57] – Update to use code runner plugin geek | user:geek:tricks [2023-07-15 13:02] (current) – [Writing Libraries] Adjust for better sandbox behavior geek | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| } | } | ||
| - | MsgBox, StrRepeat(" | + | MsgBox, |
| </ | </ | ||
| 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 | ||
| </ | </ | ||