v2だけど関数をそのまま書けるよ
Test() {
 a := "test"
 Timer() {
  ToolTip a
 }
 SetTimer Timer, -1
 Sleep 3000
 ToolTip
}
Test()