Sign in to follow this  
Followers 0

Cannot Detect Window

2 posts in this topic

I have a installation program that I am trying to script. I have a window that has an "ok" and a "cancel" button all I need to do is send an "enter" command. The script seems to skip this window and go to the next window however it does not accept the enter command thus pausing because windows is still waiting for the ENTER command.

Here is what AU3_spy say is there

>>>>>>>>>>>>( Window Title )<<<<<<<<<<<<<


( classname=TMessageForm )

>>>>>>>>>>>( Mouse Position )<<<<<<<<<<<<

On Desktop: x: 657 y: 544

In Window: x: 411 y: 203

>>>>>>>>>>>>>( Pixel Color Under Mouse)<<<<<<<<<<<<<

Dec: 15199982 Hex: 0xE7EEEE

>>>>>>>>>>>( Window Position )<<<<<<<<<<<

left: 246 top: 341 width: 579 height: 240

>>>>>>>>( Last Control Under Mouse )<<<<<<<

>>>>>>>>>( Status Bar Text )<<<<<<<<

>>>>>>>>>>>( Visible Window Text )<<<<<<<<<



>>>>>>>>>>( Hidden Window Text )<<<<<<<<<

By the way there is a whole bunch of text in this window that is not detected that is visable.

Here is the code I first used

RunWait ( 'c:\isispeed\isispeed.exe' )

WinWait ( 'Information', '2000' )

if NOT WinActive ( 'Information', '' ) then

WinActivate ( 'Information' )


WinWaitActive ( 'Information', '500' )

Send ( '{Enter}' )

Send ( '{Tab}{Tab}{Enter}' )

WinWait ( 'Open', 'File &name:' )

Using the scripticontip thing-a-majig it report that the script is stopping on the last line of the above code. Any thoughts? At the time I am running this on a windows XP Pro computer


Share this post

Link to post
Share on other sites

Well maybe never mind. I took out the time delay after reading it was in seconds rather then ms. I guess some times it helps just to ask the question.

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