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

honestly I am not sure <_<

I am new to both Watir and AutoIt.

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.