Sign in to follow this  
Followers 0
Sc1

Input Box problems

3 posts in this topic

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



Oooh...oops :) Man i feel stupid. Thanks for your help =\

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0