So i have spent the past hour or so looking at threads and can't really seem to understand. I want to be able to select a window size from left list and then from that selection. I tried using GuiCtrlRead($list1) but that doesnt seem to do it. If I were to choose 480, instead of running the program with @ comes back with "GuiCtrlRead($list1)". #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <GUIListBox.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <Process.au3> Opt("GUIOnEventMode", 1) Opt("TrayIconDebug", 1) $Form2 = GUICreate("Form2", 359, 187, 229, 546) Global $Button1 = GUICtrlCreateButton("South Windsor V: Map", 16, 32, 161, 57, $WS_GROUP) Global $Button2 = GUICtrlCreateButton("Cromwell V: Map", 184, 32, 161, 57) $List1 = GUICtrlCreateList("", 22, 120, 81, 58) GUICtrlSetData(-1, "|480|640|768") Global $Button3 = GUICtrlCreateButton("Launch", 112, 120, 225, 57) GUICtrlSetFont(-1, 20, 400, 0, "Times New Roman") $Label1 = GUICtrlCreateLabel("Select Window Size and click Launch to start Visual", 24, 96, 297, 19) GUICtrlSetFont(-1, 8, 400, 0, "Arial Black") $Label2 = GUICtrlCreateLabel("Click on Button to change Drive mapping of V:\", 40, 8, 284, 19) GUICtrlSetFont(-1, 8, 400, 0, "Arial Black") GUICtrlSetOnEvent($button1, "gui0") GUICtrlSetOnEvent($button2, "gui1") GUICtrlSetOnEvent($button3, "gui2") GUISetOnEvent($GUI_EVENT_CLOSE, "_Close") GUISetState(@SW_SHOW) While 1 Sleep(200) WEnd Func gui0() Global $gui0 = _RunDos("net use v: /delete /yes") _RunDos("net use v: \\sw-db\ve654") _RunDos("net use v: /delete /yes") _RunDos("net use v: \\sw-db\ve654") EndFunc Func gui1() Global $gui1 = _RunDos("net use v: /delete /yes") _RunDos("net use v: \\cw-db\visual654") _RunDos("net use v: /delete /yes") _RunDos("net use v: \\cw-db\visual654") EndFunc Func gui2() Global $gui2 = run("v:\vm.exe -w GuiCtrlRead($list1)",) EndFunc Func _Close() GUIDelete() Exit EndFunc