Sign in to follow this  
Followers 0
Marcelão

Manipulating hidden windows

4 posts in this topic

#1 ·  Posted (edited)

AU3 Friends,

I have an AutoIt script that is typing values into a hidden document (a xls file).

...

Run("C:\Program Files\Microsoft Office\OFFICE11\excel.exe", "", @SW_HIDE)

WinWait("Microsoft Excel")

...

The script runs until a "save as" is requested:

...

ControlSend("Microsoft Excel", "", "MsoCommandBar4", "^s") ; ---> "Save as" request

WinWait("Save As")

...

The first "WinWait" works and the second doesn't. If the parameter @SW_HIDE is changed to @SW_MAXIMIZE, the script runs sucessfully until the end.

I think the problem is about working with a hidden window calling a pattern system window.

Have you already seen any situation (and a solution) for this? (If it exists)

Thanx

Edited by Marcelão

Share this post


Link to post
Share on other sites



If you're going to use Excel, why not use the Excel UDF?

Hello Manadar,

This example I'm programming is just a simulation to how to deal with hidden windows. In fact I have a big AutoIt code working with a lot of maximized windows from Siebel Tools and Siebel Client.

If I found the solution for this "save as" window from Excel I'll find the solution for all the "sabe as" and "open" window from Siebel - they are pattern from window.

Thanx for your reply

Share this post


Link to post
Share on other sites

Sorry mate, i only saw the "Posts: 3" and i figured you had little scripting experience. Can't really help you, so good luck with that.

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