Jump to content

Recommended Posts

Posted

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 ?

Posted

i ve got the solution

wingetposx /wingetposy ...... and it s done

But it remain a question : is there any way to user autoitx3.control without installing entire autoit

IS there a dll or else to use ??

thanks

  • 9 months later...
Posted

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)

Posted

> is there any way to user autoitx3.control without installing entire autoit

It's a registrable .DLL (after regsvr32 on it - it's becoming available via both Active X and COM)

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