Jump to content

Inputbox


Recommended Posts

Hi friends ..

I am new to Autoit....I need some help from you people

Want to configure outlook using autoit..

To configure the outlook i want user to enter his name and email ID...

i want to save them as variable n use when it required

Please tell how do i do this....

Thanks n Regards

sumanth

Link to comment
Share on other sites

;Places the input box in the top left corner displaying the characters as they 
;are typed.
$answer = InputBox("Question", "Where were you born?", "Planet Earth", "", _
    -1, -1, 0, 0)

From the help file.

Link to comment
Share on other sites

do $name=InputBox("Name", "Please Enter Your Name","") until $name <> ""
do $emailid=InputBox("Name", "Please Enter Email ID","") until $emailid <> ""
msgbox(64,"Name :",$name)
msgbox(64,"Email ID :",$emailid)

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Link to comment
Share on other sites

Welcome Sumanth,

This example may help

Global $name, $password

; Enter your name
Do 
    $name = InputBox(Default, 'Enter your name', '')
Until $name <> '' Or @error

; If name was given then get the password
If $name <> '' Then
    ; Enter your password
    Do 
        $password = InputBox(Default, 'Enter your password', '')
    Until $password <> '' Or @error
    ; If both details are not empty strings then show the msgbox
    If $name <> '' And $password <> '' Then
        MsgBox(0x40000, Default, 'Name: ' & $name & @CRLF & 'Password: ' & $password)
    EndIf
EndIf

:)

Link to comment
Share on other sites

Welcome Sumanth,

This example may help

Global $name, $password

; Enter your name
Do 
    $name = InputBox(Default, 'Enter your name', '')
Until $name <> '' Or @error

; If name was given then get the password
If $name <> '' Then
    ; Enter your password
    Do 
        $password = InputBox(Default, 'Enter your password', '')
    Until $password <> '' Or @error
    ; If both details are not empty strings then show the msgbox
    If $name <> '' And $password <> '' Then
        MsgBox(0x40000, Default, 'Name: ' & $name & @CRLF & 'Password: ' & $password)
    EndIf
EndIf

:)

Thanks a lot frnd ....

Link to comment
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
 Share

  • Recently Browsing   0 members

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