papa: TOP MAN! it's that mysterious z after the $. I presume $z must mean shortstring or somthing, right? The actual param NullString wasn't a problem left as an integer as you can see by this now working code:
thanks again.
Extern "win32" Function FindWindowA:Int(nullstring%,WindowText$z) End Extern AppTitle = "test" Graphics 640,320,0 Cls Local handle = FindWindowA(0,"test") DrawText handle,0,0 Flip WaitKey
thanks again.