Sign in to follow this  
Followers 0
florynyus

My prob

3 posts in this topic


#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? :|

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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.

 

Share this post


Link to post
Share on other sites

thankk youu mann!!! is working  noww  :thumbsup:

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