Sc1 0 Report post Posted July 2, 2008 Hey, I'm looking at creating a GUI interface that will run a program when that program is typed in. I got the input box to come up and all, but for some reason it's displaying two of them? Could someone please tell me why it might be doing that? Below is the script. CODE#AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 #include <Windowsconstants.au3> #include <GuiConstantsEx.au3> #include <Misc.au3> #include <GuiButton.au3> Opt("MustDeclareVars", 1) _Main() Func _Main() Local $GUI, $coords[4] Local $box, $btn, $msg GUICreate("GetColour", 400, 70) $box = GUICtrlCreateInput("", 10, 5, 300, 20) GUICtrlSetState(1, $GUI_DROPACCEPTED) GUICtrlCreateInput("", 10, 35, 300, 20) $btn = GUICtrlCreateButton("Run", 40, 75, 60, 20) Guisetstate() $msg = 0 While $msg <> $GUI_EVENT_CLOSE $msg = GUIGetMsg() Select Case $msg = $btn ExitLoop EndSelect WEnd EndFunc Also, what does this mean: #AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 It was in at the top of one of the example scripts i used a command out of and thought i'd better include it in mine. Thanks for your time and help in advance. Share this post Link to post Share on other sites
AdmiralAlkex 117 Report post Posted July 2, 2008 1. You have 2 GUICtrlCreateInput()2. Press Ctrl+F7 while in SciTe and read about all the options (you need SciTE4AutoIt3 installed) .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Share this post Link to post Share on other sites
Sc1 0 Report post Posted July 2, 2008 Oooh...oops Man i feel stupid. Thanks for your help =\ Share this post Link to post Share on other sites