Sign in to follow this  
Followers 0
mougom

Wingetpos in VBS

4 posts in this topic

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 ?

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0