lgodfrey Posted July 21, 2004 Posted July 21, 2004 Dear Erudities: 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!"RegardsLarry I'm, Lovin' IT, X
bshoenhair Posted July 21, 2004 Posted July 21, 2004 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.
bshoenhair Posted July 21, 2004 Posted July 21, 2004 Instead of using the Array() function that is not available, use the Split() function to create your arrays.
lgodfrey Posted July 21, 2004 Author Posted July 21, 2004 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
bshoenhair Posted July 21, 2004 Posted July 21, 2004 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
Administrators Jon Posted July 22, 2004 Administrators Posted July 22, 2004 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.
prankstar008 Posted July 15, 2009 Posted July 15, 2009 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now