Jump to content

Input multiple data


Recommended Posts

Hi, I have been away from this forum for a while! But I am back now ready to improve my script with some help from this great forum...

Below is part of a larger script I use to encrypt my USB drive using AutoIT for the menu and automation and Truecrypt for the security.

At present I use the code below to store and change the user information in a text file.

I would like to know or be pointed in the right direction for

  • Enter all information in one dialouge box
  • know if there is a secure way of storing the information

Any help would be appreciated, Thanks... :)

If $CmdLine[1] = "/Update" Then
    $AnswerName = InputBox("Question", "What is your name?", $Owner, "")
    $AnswerEmail = InputBox("Question", "What is your Email?", $Email, "")
    $AnswerAdd1 = InputBox("Question", "Enter your 1st address line", $Add1, "")
    $AnswerAdd2 = InputBox("Question", "Enter your 2nd address line", $Add2, "")
    $AnswerAdd3 = InputBox("Question", "Enter your 3rd address line", $Add3, "")
    $AnswerAdd4 = InputBox("Question", "Enter your 4th address line", $Add4, "")

    IniWrite($ConfigFile,"General","Owner", $AnswerName)
    IniWrite($ConfigFile,"General","Email", $AnswerEmail)
    IniWrite($ConfigFile,"General","Add1", $AnswerAdd1)
    IniWrite($ConfigFile,"General","Add2", $AnswerAdd2)
    IniWrite($ConfigFile,"General","Add3", $AnswerAdd3)
    IniWrite($ConfigFile,"General","Add4", $AnswerAdd4)

    MsgBox(266304,"Details are now set with...","The following details will now be used." & @CRLF & @CRLF & "Name - " & $AnswerName & @CRLF & "Email - " & $AnswerEmail & @CRLF & @CRLF & "Address Line 1 - " & $AnswerAdd1& @CRLF & "Address Line 2 - " & $AnswerAdd2& @CRLF & "Address Line 3 - " & $AnswerAdd3 & @CRLF & "Address Line 4 - " & $AnswerAdd4) 
;Sleep(1000)
    Exit
Link to comment
Share on other sites

  • Enter all information in one dialouge box
  • know if there is a secure way of storing the information

Hi,

1) Create a little GUI with some GuiCtrlCreateInput

2) Have a look at _StringEncrypt

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

Thanks Mega, I think that should keep me busy for a while working this one out!

Can you tell me more about _StringEncrypt? I cant find it in the help menu and I am using SciTE

Version 1.74

Jun 18 2007 09:32:23

Thanks

Link to comment
Share on other sites

Thanks Mega, I think that should keep me busy for a while working this one out!

Can you tell me more about _StringEncrypt? I cant find it in the help menu and I am using SciTE

Version 1.74

Jun 18 2007 09:32:23

Thanks

Step 1. Uninstall both AutoIt and SciTE from your computer

Step 2. Go to the downloads section and get the latest version of AutoIt and SciTE

Step 3. Profit

It sounds like you've got a rather old version of AutoIt.

Link to comment
Share on other sites

HI,

run this : :)

Run(@WindowsDir & "\HH.exe " & RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "betaInstallDir") _
& "\UDFs3.chm::/html/libfunctions/_StringEncrypt.htm")
Opt("WinTitleMatchMode", 2)
Sleep(1500)
WinSetTitle("AutoIt UDFs Help", "", "HERE IT IS :-) .................. Mega")

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

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...