Zinefer Posted July 25, 2009 Posted July 25, 2009 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.
BuckMaster Posted July 25, 2009 Posted July 25, 2009 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
Zinefer Posted July 25, 2009 Author Posted July 25, 2009 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.
CodyBarrett Posted July 25, 2009 Posted July 25, 2009 Dim Sent[3], $Rec[3] [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size]
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