switch to app

BlitzMax Forums/BlitzMax Programming/switch to app

hmm so you need to get the handle of a different BMax program's window via the mutex name. Here's another possibility that works for me (in BlitzPlus):

In User32.decls (like doing an Extern)
User32_FindWindowA%(NullString,WindowText$):"FindWindowA"

Const FULLNAME = "Orange"
FindWindowA("",FULLNAME)		


this returns a handle ready for show window bababing!