Sign in to follow this  
Followers 0
adamsj13

Winwaitactive help

10 posts in this topic

Hi all, I'm trying to make a few scripts that use winwaitactive, winactivate.

Here is the code

Winwaitactive ("Mitchell eClaim Manager 3.2.2")

send ("ENTER")

winactivate ("Mitchell eClaim Manager 3.2.2") <------ This window is active sometimes but not always

send ("ENTER")

Winwaitactive ("Installation Complete")

send ("ENTER")

The problem I have is noneof it works. I see the autoit is running in the taskbar, but doesn't respond to the windows. I'm using SMS Installer to start the install of the application and it will also call the autoit script.

Is there anything I am missing or doing wrong? Thanks all for your help and suggestions

Share this post


Link to post
Share on other sites



Hi all, I'm trying to make a few scripts that use winwaitactive, winactivate.

Here is the code

Winwaitactive ("Mitchell eClaim Manager 3.2.2")

send ("ENTER")

winactivate ("Mitchell eClaim Manager 3.2.2") <------ This window is active sometimes but not always

send ("ENTER")

Winwaitactive ("Installation Complete")

send ("ENTER")

The problem I have is noneof it works. I see the autoit is running in the taskbar, but doesn't respond to the windows. I'm using SMS Installer to start the install of the application and it will also call the autoit script.

Is there anything I am missing or doing wrong? Thanks all for your help and suggestions

Have you tried putting a timeout for WinWaitActivate? WinWaitActive("Untitled", "", 5)

Share this post


Link to post
Share on other sites

Have you tried putting a timeout for WinWaitActivate? WinWaitActive("Untitled", "", 5)

I have with same results

Share this post


Link to post
Share on other sites

oh , it could be the syntax for your enter commands then , they should look like this send("{enter}")

Share this post


Link to post
Share on other sites

oh , it could be the syntax for your enter commands then , they should look like this send("{enter}")

That worked, however, it didnt activate the window. I had to click on it to activate it. Here is what the script looks like now.

Winwaitactive("Mitchell eClaim Manager 3.2.2")

send("{enter}")

winactivate("Mitchell eClaim Manager 3.2.2")

Winwaitactive("Mitchell eClaim Manager 3.2.2")

send("{enter}")

Winwaitactive("Installation Complete")

send("{enter}")

Share this post


Link to post
Share on other sites

Winwaitactive("Mitchell eClaim Manager 3.2.2")

Welcome to the forums!

WinWaitActive waits for the window to become active, it doesn't activate it for you.

Try this:

WinWait("Mitchell eClaim Manager 3.2.2")
WinActivate("Mitchell eClaim Manager 3.2.2")
Send("{ENTER 2}")
WinWait("Installation Complete")
WinActivate("Installation Complete")
send("{ENTER}")

Better yet, use the AutoIT window info tool and study the use of ControlClick/ControlSend.


[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

Share this post


Link to post
Share on other sites

Maybe try if winexist then winactivate and then winwaitactive. Your first line is winwaitactive. Try to use winactivate before it.

Share this post


Link to post
Share on other sites

Hi, When I try to use the window info tool this is what it shows

Press CTRL-ALT-F to pause the display.

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<

Title: Mitchell eClaim Manager 3.2.2

Class: #32770

Size: X: 403 Y: 31 W: 522 H: 394

>>>>>>>>>>> Mouse Details <<<<<<<<<<<

Screen: X: 584 Y: 43

Cursor ID: 2

>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<

RGB: Hex: 0x0055E5 Dec: 21989

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<

Size:

Control ID:

ClassNameNN:

Text:

Can I still use controlclick since there is not Control ID or Text?

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Hi, When I try to use the window info tool this is what it shows

Press CTRL-ALT-F to pause the display.

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<

Title: Mitchell eClaim Manager 3.2.2

Class: #32770

Size: X: 403 Y: 31 W: 522 H: 394

>>>>>>>>>>> Mouse Details <<<<<<<<<<<

Screen: X: 584 Y: 43

Cursor ID: 2

>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<

RGB: Hex: 0x0055E5 Dec: 21989

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<

Size:

Control ID:

ClassNameNN:

Text:

Can I still use controlclick since there is not Control ID or Text?

Sorry I didn't realize the window scrolls down.

Press CTRL-ALT-F to pause the display.

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<

Title: Mitchell eClaim Manager 3.2.2

Class: #32770

Size: X: 403 Y: 31 W: 522 H: 394

>>>>>>>>>>> Mouse Details <<<<<<<<<<<

Screen: X: 584 Y: 43

Cursor ID: 2

>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<

RGB: Hex: 0x0055E5 Dec: 21989

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<

Size:

Control ID:

ClassNameNN:

Text:

>>>>>>>>>>> Status Bar Text <<<<<<<<<<<

>>>>>>>>>>> Visible Window Text <<<<<<<<<<<

&Continue

Click Continue to begin the installation.

Please contact the Information Technical Support Desk if you experience any problems.

The runtime for this installation will be approximately 20 minutes. To save any work in progress before this installation begins, switch focus to the open applications by pressing the ALT + TAB key combination. Save all work and exit the applications.

You may experience periods of apparent inactivity. Please be patient and DO NOT reboot the workstation or touch the mouse or keyboard unless prompted. A notification screen will display the results of the installation procedure when the installer has completed.

Welcome to the Installer for:

Mitchell eClaim Manager 3.2.2

>>>>>>>>>>> Hidden Window Text <<<<<<<<<<<

Edited by adamsj13

Share this post


Link to post
Share on other sites

Have you got the mouse hovering over the control that you want details of? i.e. hover the mouse over the button to get the ClassNameNN data.

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  
Followers 0