adamsj13 Posted July 19, 2006 Share Posted July 19, 2006 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 Link to comment Share on other sites More sharing options...
win2k Posted July 19, 2006 Share Posted July 19, 2006 Hi all, I'm trying to make a few scripts that use winwaitactive, winactivate. Here is the codeWinwaitactive ("Mitchell eClaim Manager 3.2.2")send ("ENTER")winactivate ("Mitchell eClaim Manager 3.2.2") <------ This window is active sometimes but not alwayssend ("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 suggestionsHave you tried putting a timeout for WinWaitActivate? WinWaitActive("Untitled", "", 5) Link to comment Share on other sites More sharing options...
adamsj13 Posted July 19, 2006 Author Share Posted July 19, 2006 Have you tried putting a timeout for WinWaitActivate? WinWaitActive("Untitled", "", 5)I have with same results Link to comment Share on other sites More sharing options...
win2k Posted July 19, 2006 Share Posted July 19, 2006 oh , it could be the syntax for your enter commands then , they should look like this send("{enter}") Link to comment Share on other sites More sharing options...
adamsj13 Posted July 19, 2006 Author Share Posted July 19, 2006 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}") Link to comment Share on other sites More sharing options...
Skruge Posted July 19, 2006 Share Posted July 19, 2006 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] Link to comment Share on other sites More sharing options...
Bundy Posted July 19, 2006 Share Posted July 19, 2006 Maybe try if winexist then winactivate and then winwaitactive. Your first line is winwaitactive. Try to use winactivate before it. Link to comment Share on other sites More sharing options...
adamsj13 Posted July 20, 2006 Author Share Posted July 20, 2006 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? Link to comment Share on other sites More sharing options...
adamsj13 Posted July 20, 2006 Author Share Posted July 20, 2006 (edited) Hi, When I try to use the window info tool this is what it showsPress CTRL-ALT-F to pause the display.>>>>>>>>>>>> Window Details <<<<<<<<<<<<<Title: Mitchell eClaim Manager 3.2.2Class: #32770Size: X: 403 Y: 31 W: 522 H: 394>>>>>>>>>>> Mouse Details <<<<<<<<<<<Screen: X: 584 Y: 43Cursor 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.2Class: #32770Size: X: 403 Y: 31 W: 522 H: 394>>>>>>>>>>> Mouse Details <<<<<<<<<<<Screen: X: 584 Y: 43Cursor 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 <<<<<<<<<<<&ContinueClick 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 July 20, 2006 by adamsj13 Link to comment Share on other sites More sharing options...
MHz Posted July 20, 2006 Share Posted July 20, 2006 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now