How to Activate an App without a Windowname
Keywords: winexename
Here's a script to activate an executable when you know the executable name but not the windowname.
App="notepad" ;app name without exe on the end. List=winitemize() count=itemcount(list,@tab) for i= 1 to count this=itemextract(i, list, @tab) thisexe=winexename(this) thisexe=fileroot(thisexe) if stricmp(app, thisexe) == 0 winactivate(this) break endif next
Article ID: W14171Filename: Activate App without Windowname.txt