BattleOfMoonShae Posted January 15, 2007 Share Posted January 15, 2007 I was wondering if anyone can teach me how to make data entered to the GUICtrlCreateInput add to the GUICtrlCreateList. #include <GuiConstants.au3> GUICreate("AIRCRAFT", 263, 875, 193, 115);, $WS_EX_ACCEPTFILES, (@DesktopWidth - 231) / 2, (@DesktopHeight - 903) / 2, $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) $List_1 = GUICtrlCreateList("Adam A700", 8, 8, 201, 825) GUICtrlSetData(-1, "Aerospace Industrial G100|Aerostar FJ100|Atkinson AJ2|BAE Jetstream 41|Beechcraft B200 King Air|Beechcraft Beechjet 400A|Boeing BBJ|Bombardier Challenger 300|Bombardier Lear 35|Bombardier Lear 45|Bombardier Learjet 60|Cessna Citation II 550|Cessna Citation Mustang|Cessna Citation X|Dassault Falcon|Eaglesoft Premier 1|Eclipse 500|Embraer 170|Falcon Twin Jet Executive Concept|Gulfstream 5|Gulfstream G100|Gulfstream IV|Hawker 400XP|Hawker 800XP|Hawker Siddeley HS125-700|Jetstar II|LearFan 2100|Lockheed Jetstar II|Maverick Personal|Rockwell Sabreliner T-39|SabreLiner FDE|Stratojet Excalibur|Vinair Falcon 900") $Button_2 = GUICtrlCreateButton("OK", 216, 16, 33, 809, 0) $Input1 = GUICtrlCreateInput("", 8, 848, 201, 21) GUICtrlSetState(-1,$GUI_DROPACCEPTED) $Button2 = GUICtrlCreateButton("ADD", 216, 848, 33, 17, 0) GUICtrlSetState($Button_2, $GUI_DEFBUTTON) ;GUICtrlSetState(-1,$GUI_FOCUS) GUISetState(@SW_SHOW) $msg = 0 While $msg <> $GUI_EVENT_CLOSE $msg = GUIGetMsg() Select Case $msg = $Button_2 ExitLoop EndSelect WEnd Link to comment Share on other sites More sharing options...
BrettF Posted January 15, 2007 Share Posted January 15, 2007 The line you want is: _GUICtrlListAddItem ($List_1, GUICtrlRead($input1))oÝ÷ Ù¦y·«¶§r[zØ^)Þjëh×6#Include <GuiList.au3> Or it wont work If you dont mind me asking, what are you making. Im just intrested..... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
BattleOfMoonShae Posted January 15, 2007 Author Share Posted January 15, 2007 Thanks Bert. I missed GUICtrlListAddItem in the help file. To your question. I am toying with an idea to to bring up engineering detail/specs for aircraft faster and easier. We build turbofan engines for Corporate Jets. Link to comment Share on other sites More sharing options...
BrettF Posted January 15, 2007 Share Posted January 15, 2007 cool... Let me now when your done..... I'd like to see it, having some intrest in planes and whatnot.... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
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