Jump to content
Sign in to follow this  
blender

WinActivate returns nothing?

Recommended Posts

blender

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

activate:

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
Ozi

might be able to help you if that was autoit.

Share this post


Link to post
Share on other sites
blender

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  

×