Code: Select all
bf := Func("WhoAmI")
ToolTip("& of bf from main: " (&bf), 200, 200) ; same address, so its ok
ahkThread("
(
#Persistent
CoordMode("ToolTip")
ptr_to_bf := A_Args[1]
ToolTip("& of bf from thread: " ptr_to_bf, 200, 220) ; same address, so its ok
Object(ptr_to_bf).Call("thread") ; crash
)", &bf "") ; why does this have to be string concatenated?? otherwise thread tooltip shows chinese chars
WhoAmI(entity) {
MsgBox("msg from " entity)
}
Esc::ExitApp