Guest stark Posted January 7, 2004 Posted January 7, 2004 I'm having trouble getting the WinGetActiveTitle function to work using the ActiveX Object. Here's my code. testvar=WinGetActiveTitle() wscript.echo testvar I get a type mismatch error.
Developers Jos Posted January 7, 2004 Developers Posted January 7, 2004 try this one:Option Explicit Dim oShellDim oAutoItDim testvarSet oAutoIt = WScript.CreateObject("AutoItX.Control")testvar=oAutoIt.WinGetActiveTitle()wscript.echo testvarWScript.Quit SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts