Aceguy Posted July 1, 2006 Posted July 1, 2006 here is my code expandcollapse popup#include <GUIConstants.au3> #include <Array.au3> #include <Guilist.au3> $my_gui=GUICreate("my gui") $My_list=GUICtrlCreateList("",10,10,-1,-1,BitOR($WS_BORDER, $WS_VSCROLL)) $read = GUICtrlCreateButton("Read",10,165) $save= GUICtrlCreateButton("Save",10,200) $input_box=GUICtrlCreateInput("Name",10, 230,100) $who = GUICtrlCreateButton("Compare",60,200) GUISetState() While 1 $msg=GUIGetMsg() Select case $msg = $read for $xpix = 0 to 25 $xpix_color=PixelGetColor(680+$xpix,551) GUICtrlSetData($My_list,$xpix_color&"|") next case $msg = $save dim $md $myname= GUICtrlRead($input_box) For $x = 0 To _GUICtrlListCount($My_list) - 1 $data=_GUICtrlListGetText($My_list,$x) GUICtrlSetData($md,$data) Next _ArrayDisplay($md,"test") case $msg = -3 ExitLoop EndSelect WEnd I ultimatley would like the array to be displayed as 234234|2343|12341|11221|234322 ect.......... but cant get it to even display as [0]6 [1]234234 [2]2343 ect.... Please Help, i have no hair left............. [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock
Developers Jos Posted July 1, 2006 Developers Posted July 1, 2006 something like ?: expandcollapse popup#include <GUIConstants.au3> #include <Array.au3> #include <Guilist.au3> $my_gui = GUICreate("my gui") $My_list = GUICtrlCreateList("", 10, 10, -1, -1, BitOR($WS_BORDER, $WS_VSCROLL)) $read = GUICtrlCreateButton("Read", 10, 165) $save = GUICtrlCreateButton("Save", 10, 200) $input_box = GUICtrlCreateInput("Name", 10, 230, 100) $who = GUICtrlCreateButton("Compare", 60, 200) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $read For $xpix = 0 To 25 $xpix_color = PixelGetColor(680 + $xpix, 551) GUICtrlSetData($My_list, $xpix_color & "|") Next Case $msg = $save $data = "" $myname = GUICtrlRead($input_box) For $x = 0 To _GUICtrlListCount($My_list) - 1 $data &= _GUICtrlListGetText($My_list, $x) & "|" ;GUICtrlSetData($md, $data) Next MsgBox(0,'show',$data) Case $msg = -3 ExitLoop EndSelect WEnd SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Aceguy Posted July 1, 2006 Author Posted July 1, 2006 AHHHHHHH WICKED....... Exactly what i wanted, thanks v much. [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock
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