Jump to content
Sign in to follow this  

Input Box problems

Recommended Posts


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.

#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)


Func _Main()

Local $GUI, $coords[4]

Local $box, $btn, $msg

GUICreate("GetColour", 400, 70)

$box = GUICtrlCreateInput("", 10, 5, 300, 20)


GUICtrlCreateInput("", 10, 35, 300, 20)

$btn = GUICtrlCreateButton("Run", 40, 75, 60, 20)


$msg = 0

While $msg <> $GUI_EVENT_CLOSE

$msg = GUIGetMsg()


Case $msg = $btn





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