Jump to content

WinGetPos in 3.3.14.5 has error no Method


travick
 Share

Recommended Posts

Hi,

Currently on win 10 X64 and tried to COM/DLL versions of AutoItX3.dll

old: 3.3.14.2 and update to latest 3.3.14.5

I'm testing with JScript and all other methods seem to work

Test Code

var oAutoIt =  WScript.CreateObject("AutoItX3.Control");

    var hh = oAutoIt.WinActivate("Untitled - Notepad");                     // => WORKS
    // var hh = oAutoIt.WinWaitActive("Untitled - Notepad", "", 10);    // Timeout = 10 secs => WORKS
    
    // oAutoIt.WinGetPos(hh, "");       // Error: Object doesn't support property or method
    // oAutoIt.WinGetPos(hh);           // Error: Object doesn't support property or method
    
    // var wsz = oAutoIt.WinGetPos(hh, ""); // Error: Object doesn't support property or method
    // var wsz = oAutoIt.WinGetPos(hh); // Error: Object doesn't support property or method
    // WScript.Echo("WinGetPos " + wsz[0] + " " + wsz[1] + " " + wsz[2] + " " + wsz[3]);
    
    oAutoIt.WinMove(hh, "", 550, 350);                                  // => WORKS

    oAutoIt.WinClose(hh);                                           // => WORKS
    WshShell.SendKeys("n");                                         // => WORKS
    
    // Just commented out the various lines to test each one but none work for WinGetPos()

Any suggestions?

 

 

Link to comment
Share on other sites

  • 1 month later...

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...