Jump to content

Input array data wrongly


Rigo
 Share

Recommended Posts

Hello, I gets somehow from the input field only one number instead of that worth that therein stands.

That is the input field:

$inp_accountusername_connect = GUISetControl("input", $user, 120, 100, 150, 20)

And here it is to actually write the value into the Ini.

Case $msg = $btn_accountspeichern_connect
    IniWrite("evo.ini", "Account", "Username", $inp_accountusername_connect)

Why I get there no correct worth back. To me wrong does which I asks, but I am absolute beginner.

thx

Link to comment
Share on other sites

Hello, I gets somehow from the input field only one number instead of that worth that therein stands.

That is the input field:

$inp_accountusername_connect = GUISetControl("input", $user, 120, 100, 150, 20)

And here it is to actually write the value into the Ini.

Case $msg = $btn_accountspeichern_connect
    IniWrite("evo.ini", "Account", "Username", $inp_accountusername_connect)

Why I get there no correct worth back.  To me wrong does which I asks, but I am absolute beginner.

thx

You didn't show us the complete script.

So I'll try to give you a solution.

Case $msg = $btn_accountspeichern_connect
   IniWrite("evo.ini", "Account", "Username", GUIRead($inp_accountusername_connect))
Edited by SlimShady
Link to comment
Share on other sites

  • Developers

The $inp_accountusername_connect is the handle for this field.

After a guishow() and GUIMSG() you can read the value from the field by doing a:

GUIREAD($inp_accountusername_connect)

Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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