Jump to content

Recommended Posts

Posted (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 by gtrotter
  • Moderators
Posted

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!

Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...