florynyus Posted January 6, 2014 Share Posted January 6, 2014 #include <Array.au3> #include <IE.au3> Dim $messages[3]=["well well well", "call me hun","you pull me down"] Dim $numbers[3]=["phonenumber1", "phonenumber2", "phonenumber3"] $i= Random(1, 3, 1) $i2= Random(1, 3, 1) Call ("MSG") func MSG() Global $oIE = _IECreate ("http://www.e-freesms.com/sms.php") Local $country = _IEGetObjByName ($oIE, "country45367928") Local $countrycode = _IEGetObjByName ($oIE, "countrycode45367928") Local $number = _IEGetObjByName ($oIE, "number45367928") Local $msg = _IEGetObjByName ($oIE, "message45367928") _IEFormElementSetValue ($country, "40") _IEFormElementSetValue ($countrycode, "40") _IEFormElementSetValue ($number, $numbers[$i2]) _IEFormElementSetValue ($msg, $messages[$i]) _IEFormImageClick($oIE, "css/images/sendbt.png", "src") EndFunc Array variable has incorrect number of subscripts or subscript dimension range exceeded.: so can some1 pls help me? :| Link to comment Share on other sites More sharing options...
bogQ Posted January 7, 2014 Share Posted January 7, 2014 (edited) Array goes from 0 so when you declare 3 rows with Dim $messages[3] first row is 0 (so its "0","1" ,"2" and not "1","2","3" like on your random). When ever your random hit number 3, array display error... Edited January 7, 2014 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
florynyus Posted January 7, 2014 Author Share Posted January 7, 2014 thankk youu mann!!! is working noww Link to comment Share on other sites More sharing options...
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