Sign in to follow this  
Followers 0
Zinefer

Probably doing something stupid...

4 posts in this topic

I can't quite figure out what I am doing wrong here, I haven't written anything for AutoIt in a while and can't get this to work... Any suggestions?

$sent[0] = GUICtrlCreateLabel("1", 10, 90,100,15)
$sent[1] = GUICtrlCreateLabel("2", 10, 120,100,15)
$sent[2] = GUICtrlCreateLabel("3", 10, 150,100,15)
$rec[0] = GUICtrlCreateLabel("1", 110, 90,100,15)
$rec[1] = GUICtrlCreateLabel("2", 110, 120,100,15)
$rec[2] = GUICtrlCreateLabel("3", 110, 150,100,15)

Thanks so much.

Share this post


Link to post
Share on other sites



Is there any reason your using sent and rec as arrays?

if not then this works..

$GUI = GuiCreate("Example", 300, 200, -1, -1)
$sent1 = GUICtrlCreateLabel("1", 10, 90,100,15)
$sent2 = GUICtrlCreateLabel("2", 10, 120,100,15)
$sent3 = GUICtrlCreateLabel("3", 10, 150,100,15)
$rec1 = GUICtrlCreateLabel("1", 110, 90,100,15)
$rec2 = GUICtrlCreateLabel("2", 110, 120,100,15)
$rec3 = GUICtrlCreateLabel("3", 110, 150,100,15)
GuiSetState()

While 1
WEnd

Share this post


Link to post
Share on other sites

They need to be arrays because later:

for $k = 0 to $timesRun
        GUICtrlSetData($sent[$k], $logSent[$k])
        GUICtrlSetData($rec[$k], $logRec[$k])
    Next

Help file said I didn't need to declare them, thanks for the head up, that fixed everything.

Share this post


Link to post
Share on other sites

Dim Sent[3], $Rec[3]

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