Sign in to follow this  
Followers 0
lgodfrey

AutoITX3 and Methods File

7 posts in this topic

Dear Erudities: :ph34r:

It may be a good idea to add a comment to the top of the "available AutoITX3 Methods" txt file that there are methods available in AutoITX3 not available in AutoIT. For instance, it looks like the developers put in WinGetPosX,Y etc so that a non-array function call can be used in programs that do not allow array functions (such as Excel VBA). My own fault, but I had assumed the methods were a sub-set of the AutoIT methods and wasted a bunch of time creating a shell function to get at windows position instead of just using the single value functions.

Here a "cute" way to identify those addtional functions:

Save the text file as an au3 file and look at it with SciTE. The "new" methods will be shown with a different font.

"Lovin IT!"

Regards

Larry


I'm, Lovin' IT, X

Share this post


Link to post
Share on other sites



programs that do not allow array functions (such as Excel VBA).

You are wrong, I just created a Array and it returned the all the values perfectly.

I noticed the Array() function is not available though.

Share this post


Link to post
Share on other sites

Instead of using the Array() function that is not available, use the Split() function to create your arrays.

Share this post


Link to post
Share on other sites

So how did you do it in excel? When I try it using WinGetPos, it doesn't even compile, while the WinGetPosX,Y functions work perfectly. Can you share your test code?

Also the only split function that I can find splits a string up into an array, but we are starting with an array here. So how can this work?

Larry


I'm, Lovin' IT, X

Share this post


Link to post
Share on other sites

WinGetPos is not supported in the AutoItx3 you must use WinGetPosX or WinGetPosY.

Off this subject, to read an existing array try this:

Dim x as Variant, i as Integer

x = ExistingArray

For i = 0 To UBound(x)

msgbox x(i)

Next i

Share this post


Link to post
Share on other sites

You are wrong, I just created a Array and it returned the all the values perfectly.

I noticed the Array() function is not available though.

He means passing an array between VB and another program (autoitx). I couldn't find any compatible way (VB is not the only target) of doing it so some autoit functions that return arrays work differently in autoitx.

Share this post


Link to post
Share on other sites

Thanks dude. I just spent like 2 hours trying to figure out why WinGetPos wouldn't work in ruby. My testing is all done on a remote machine so a dRuby/win32ole error is really vague.

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