Jump to content
Sign in to follow this  

WinActivate returns nothing?

Recommended Posts

Hi, All

Here's my situation: I wrote a script to deal with a pop up dialog.

Part of my code to activate the pop-up is below: (I wrote in ruby with Watir library)

AutoIt is implemented in Watir library.

exit = @autoit.WinExists("Manager")
puts("exit: #{exit}")
active = @autoit.WinActive("Manager")
puts("active: #{active}")
activate = @autoit.WinActivate("Manager")
puts("activate: #{activate}")

The result I got is:

exit: 1

active: 0


I checked the function reference. WinActivate will return either 1 or 0. In my case, I got nothing from WinActivate.

Any ideas?

Edited by blender

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...