Jump to content

Recommended Posts

Posted

Greeting,

looking for the way to get multi input in one windows.

for example:

    line1: your name please

    line2: Title:

    line3: Email

But I need to allow line2 and line3 maybe is empty, how to do that.

Thanks

usera

Posted

usera,

 One window or one control within your window?

kylomas

 

like this :

+----------------------------------------------------------------------------------

|        line1: your name please

|        line2: Title:

|        line3: Emailline1: your name please

|

+---------------------------------------------------------------------------------------

a small window

thanks for ask

usera

Posted

This?

; *** Start added by AutoIt3Wrapper ***
#include <GUIConstantsEx.au3>
; *** End added by AutoIt3Wrapper ***

#AutoIt3Wrapper_Add_Constants=n

local $gui010   =   guicreate('Simple Example',400,100)
                    GUICtrlCreateLabel('Name',20,20,100,20)
local $name     =   guictrlcreateinput('',110,20,200,20)
                    GUICtrlCreateLabel('Title',20,40,100,20)
local $title    =   guictrlcreateinput('',110,40,200,20)
                    GUICtrlCreateLabel('Email',20,60,100,20)
local $email    =   guictrlcreateinput('',110,60,200,20)
                    guisetstate()

while 1
    switch guigetmsg()
        case $GUI_EVENT_CLOSE
            Exit
        case $name
            ;
            ; your name routine here
            ;
        case $title
            ;
            ; your title routine here
            ;
        case $email
            ;
            ; your email routine here
            ;
    EndSwitch
wend

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Posted

 

This?

; *** Start added by AutoIt3Wrapper ***
#include <GUIConstantsEx.au3>
; *** End added by AutoIt3Wrapper ***

#AutoIt3Wrapper_Add_Constants=n

local $gui010   =   guicreate('Simple Example',400,100)
                    GUICtrlCreateLabel('Name',20,20,100,20)
local $name     =   guictrlcreateinput('',110,20,200,20)
                    GUICtrlCreateLabel('Title',20,40,100,20)
local $title    =   guictrlcreateinput('',110,40,200,20)
                    GUICtrlCreateLabel('Email',20,60,100,20)
local $email    =   guictrlcreateinput('',110,60,200,20)
                    guisetstate()

while 1
    switch guigetmsg()
        case $GUI_EVENT_CLOSE
            Exit
        case $name
            ;
            ; your name routine here
            ;
        case $title
            ;
            ; your title routine here
            ;
        case $email
            ;
            ; your email routine here
            ;
    EndSwitch
wend

 

Perfect, thanks

how to add a "OK" or "summit" button ?

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...