gtrotter Posted July 30, 2020 Share Posted July 30, 2020 (edited) Hello, I have created a script and complied the same to an .exe file. The file runs fine in my system (64-bit), and the client has simlar configuration. The script exe did run but only partly in client's machine. I have further tried adding MsgBox after each line of code; and was able to identify the script starts executing, runs another application (through Run() command), however does not respond on below LOC (nothing happens further): Local $hWnd = WinWait("[CLASS:WindowsForms10.Window.8.app.0.33c0d9d]", "") I'm a newbie in AutoIt and appreciate support. Edited July 30, 2020 by gtrotter Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted July 30, 2020 Moderators Share Posted July 30, 2020 So it tells you that the script comes to the point of waiting for the window to appear and then never finds it. You should always include a timeout for WinWait, to avoid just such an issue. I am assuming the Window itself appears? If so, I would suggest using the AutoIt Window Info tool to look at the window properties on the client machine to give you an idea where the discrepancy may be. You may need to add additional info, such as visible text, in order to identify the window. Let us know what the Window Info Tool reports back, and we can assist from there. "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! Link to comment Share on other sites More sharing options...
gtrotter Posted August 3, 2020 Author Share Posted August 3, 2020 I realize, the class names for the same application appears to be varying on different machines. I tried identifying the same through windows info tool in client machine. This did the job. Thanks @JLogan3o13 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