KSum

When is the program and file fully opened?

4 posts in this topic

I am trying to write a script that times the steps to start a program, enter the file to open, and then be ready for user input.  I have this happening for a couple applications already, but need it for AutoCAD and am having a problem knowing when the program is ready for user input.  There are a couple messages that change in the window, but none are showing in the Window Info values as either visible or hidden.  I have looked at the COM objects a little, but get lost trying to figure out how to know when the file is fully opened.  AutoCAD just doesn't show up friendly to me in the OLE/COM Viewer.  Probably due to my never having dealt with it before.

Any suggestions on how I can determine the program and file is fully opened in this case?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

This is the breakdown of a AU3 made to a EXE start procedure

1   C:\AutoIt3\Code\SetupScreen6.exe    exe 2   2   0   0   0   0   0   0x000000f0          0x00000000  
2   C:\Windows\Globalization\Sorting\sortdefault.nls    nls 1   1   0   0   0   0   0   0x000000f4          0x00000000  
3   C:\AutoIt3\Code\Skins\0Rosewd1\0.bmp    bmp 2   2   0   2   0   54,828  0   0x0000011c          0x00000000  
4   C:\Windows\system32\rsaenh.dll  dll 1   1   0   0   0   0   0   0x00000114          0x00000000  
5   C:\Users\xxxxxxxxx\AppData\Local\Temp\~DF6717C65326C5857E.TMP   TMP 1   0   0   0   0   0   0   0x00000110          0x00000000  
6   C:\AutoIt3\Code\Skins\0Rosewd1\2.bmp    bmp 2   2   0   2   0   54,828  0   0x0000011c          0x00000000  
7   C:\AutoIt3\Code\Skins\0Rosewd1\5.bmp    bmp 2   2   0   2   0   54,828  0   0x0000011c          0x00000000  
8   C:\AutoIt3\Code\Skins\0Rosewd1\7.bmp    bmp 2   2   0   2   0   54,828  0   0x0000011c          0x00000000  
9   C:\AutoIt3\Code\Skins\0Rosewd1\1.bmp    bmp 3   3   0   3   0   82,242  0   0x0000011c          0x00000000  
10  C:\AutoIt3\Code\Skins\0Rosewd1\6.bmp    bmp 3   3   0   3   0   82,242  0   0x0000011c          0x00000000  
11  C:\AutoIt3\Code\Skins\0Rosewd1\3.bmp    bmp 1   1   0   1   0   27,414  0   0x0000011c          0x00000000  
12  C:\AutoIt3\Code\Skins\0Rosewd1\4.bmp    bmp 1   1   0   1   0   27,414  0   0x0000011c          0x00000000  
13  C:\Windows\Fonts\staticcache.dat    dat 1   0   0   1   0   60  0   0x0000011c          0x00000000

The last thing that runs is Font Cache, hope it helps

Edited by meows
because I wanted to see what it did

Share this post


Link to post
Share on other sites

Sorry.  I am not looking to determine when the AutoIt created executable is done loading, but when a program launched by AutoIt (in this case AutoCAD) is fully loaded and accepting user input when the Window and Visible as well as Hidden text do not change.  The only real indication in this case is that the mouse wheel has stopped and the graphics are fully displayed.  I believe the COM messages are helpful but trying to figure out how to find them for the application as I am not finding them listed in the OLE/COM Viewer from the Windows SDK.

 

Karl

Share this post


Link to post
Share on other sites

Sorry.  I am not looking to determine when the AutoIt created executable is done loading, but when a program launched by AutoIt (in this case AutoCAD) is fully loaded and accepting user input when the Window and Visible as well as Hidden text do not change.  The only real indication in this case is that the mouse wheel has stopped and the graphics are fully displayed.  I believe the COM messages are helpful but trying to figure out how to find them for the application as I am not finding them listed in the OLE/COM Viewer from the Windows SDK.

 

Karl

​So sorry you are asking in the wrong place then. I would have to have AutoCAD to track it's loading sequence, So I would guess you need the AutoCAD forums.

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