Jump to content

Wingetpos in VBS


mougom
 Share

Recommended Posts

Hello

i try to use autoitX3.control in VBS script

Winmove function is ok but not Wingetpos

Wingetpos return an error and i dont indurstand

here is my simple code

Set oAutoIt = WScript.CreateObject("AutoItX3.Control")

dim test

redim test (4)

test =winGetPos("title","") => "this object dont use this method or property"

oAutoIt.WinMove "title", "", 300, 200, 700, 600 => OK

is anyone have a solution ?

Link to comment
Share on other sites

  • 9 months later...

Had same problem. To autoit dll keepers:

(C#)

object RetVal = wa.InvokeMember("WinGetPos",BindingFlags.Default | BindingFlags.InvokeMethod, null, _AutoIT3, new object[] { WinTitle });

uint [] RetArray = (uint []) RetVal;

or

foreach (object element in (IEnumerable<object>)RetVal)

... plz add this method, make it work...

----AutoITX3.dll missing method WinGetPos (returns 4 parameters in array)

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