MartinQuick Posted January 17, 2013 Posted January 17, 2013 Hi there,I have a program that is used to populate the options on a separate program's window. I does run the other program but doesn't seem to activate the window so the rest of the script can act on it. Could anyone offer some suggestions as to why this might be happening. I am using Windows 7 and AutoIt3. Thanks in advance.At the top of the code isinclude <GUIConstantsEx.au3>#include <GUIComboBox.au3>#include <WindowsConstants.au3>#include <Array.au3>#include <Process.au3>Opt("TrayIconHide", 0) ;0=show, 1=hide tray iconOpt("TrayMenuMode",1)opt("WinTitleMatchMode",4and later in the code is:---Else TrayTip("SUCCESS", "Window opened OK", 2) WinActivate("[CLASS:#32770]","") If (WinActive("[CLASS:#32770]","")=1) Then MsgBox(0, "Step", "So far so good") EndIfI never get the "So far so good" text.
Moderators JLogan3o13 Posted January 17, 2013 Moderators Posted January 17, 2013 Have you tried going with the title of the window, rather than the class? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
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