Jump to content

How to use WinGetActiveTitle with AutoItX

Recommended Posts

I'm having trouble getting the WinGetActiveTitle function to work using the ActiveX Object. Here's my code.


wscript.echo testvar

I get a type mismatch error.

Link to post
Share on other sites
  • Developers

try this one:

Option Explicit

Dim oShell

Dim oAutoIt

Dim testvar

Set oAutoIt = WScript.CreateObject("AutoItX.Control")


wscript.echo testvar


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.

Link to post
Share on other sites
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...