lgodfrey 0 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 Share this post Link to post Share on other sites
bshoenhair 0 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. Share this post Link to post Share on other sites
bshoenhair 0 Posted July 21, 2004 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
lgodfrey 0 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 Share this post Link to post Share on other sites
bshoenhair 0 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 Share this post Link to post Share on other sites
Jon 871 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. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Share this post Link to post Share on other sites
prankstar008 0 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. Share this post Link to post Share on other sites