Jump to content

Sudden problems without changing my code !


SueImWeb
 Share

Recommended Posts

Hello,

i am using AutoItX as a registered COM Object for about 1,5 years now and everything worked fine, also after upgrading to version 3.2.12.1.

Yesterday I detected, that some methods of AutoItX didn't work anymore (there was no Windows Update on my computer, no changes of my code in the regarding classes).

Because i was working on the design of my application during the last few days, I tested older versions of my program back to 30. Sep to exclude a bug.

The same problem appeared through all versions.

-------------------------------------------------------------------------------------------

The first problem (ControlGetHandle):

// C# Code
public class MyClass
{
    private AutoItX3Lib.AutoItX3Class ait3 = new AutoItX3Lib.AutoItX3Class();

    public MyClass()
    {
         ait3.AutoItSetOption("WinTitleMatchMode", 4);
    }

    // trying to get the handle of a control
    // in another application
    public string GetTheControlHandle()
    {
    // Suddenly returns an empty string
    // and sets error to 1
        // The ControlId is definitely 2008!
        // Testing the ClassNameNN "Edit122"
        // was causing the same return
        string hwnd = ait3.ControlGetHandle("", "", "2008");
    }
}

------------------------------------------------------------------------------------------

The second problem (WinSetTitle):

I designed an interface to enable communication between 2 applications. One of these programs comes from an extern software vendor and allows creating own forms with VBScript for individual purposes. This is where I use AutoItX to send some Text to a hidden window in my .NET application, where a hook (WndProc) catches the message and fires an event if the message number is 12 (WM_SETTEXT).

Yesterday I found out, that suddenly no WM_SETTEXT arrives my hook in the hidden window.

Monitoring the operations with WinspectorSpy I also missed my message.

But then the unbelievable: The title of my hidden window get set to the new text out of my message!!!

I then ran tests on 3 other computers - everywhere the same result.

-----------------------------------------------------------------------------------------------

As far as I know yet, every other methods do still work fine.

Does anybody have an idea what could cause these problems?

Thank you in advance.

Sue

Link to comment
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
 Share

  • Recently Browsing   0 members

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