Jump to content

Problems With Guictrlread


Shao
 Share

Recommended Posts

Hello,

I have some problems with a guictrlread used to get the text entered in a guictrlcreateinput.

I've tried many different ways to do it :

with variables=guictrlread(variables)

$UTILISATEUR = GUICtrlRead($UTILISATEUR)
   $MOTDEPASSE = GUICtrlRead($MOTDEPASSE)
   $Identif = $UTILISATEUR & " " & $MOTDEPASSE

with array-variables :

$UTILISATEUR = GUICtrlRead($UTILISATEUR,1)
   $MOTDEPASSE = GUICtrlRead($MOTDEPASSE,1)
   $Identif = $UTILISATEUR[0] & " " & $MOTDEPASSE [0]

other-non-array variables :

$user = GUICtrlRead($UTILISATEUR)
   $mdp = GUICtrlRead($MOTDEPASSE)
   $Identif = $mdp & " " & $mdp

other array-variables :

$user = GUICtrlRead($UTILISATEUR,1)
   $mdp = GUICtrlRead($MOTDEPASSE,1)
   $Identif = $mdp[0] & " " & $mdp[0]

But the variables getting the input-datas are 0.

How can I do to make that

$Identif = data of $UTILISATEUR & " " & data of $MOTDEPASSE

??

thanks

Link to comment
Share on other sites

you need to read the control ID of the input

$handle = guictrlcreateinput()

; later

info = guictrlread($hande)

8)

Thank you but it's exactly that I did :

$UTILISATEUR = GUICtrlCreateInput("", (@DesktopWidth+50-500)/2, 470, 500, 25)

Edited by Shao
Link to comment
Share on other sites

Thank you but it's exactly that I did :

from what i can see you then overwrote the handle with the date i.e.

$UTILISATEUR = GUICtrlRead($UTILISATEUR)

should be something like:

$mydataname = GuiCtrlRead($UTILISATEUR)

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

from what i can see you then overwrote the handle with the date i.e.

$UTILISATEUR = GUICtrlRead($UTILISATEUR)

should be something like:

$mydataname = GuiCtrlRead($UTILISATEUR)

As I told it above, I already tried this :

$UTILISATEUR = GUICtrlRead($UTILISATEUR)

and this

$UTILISATEUR = GUICtrlRead($UTILISATEUR,1)

and also this

$user = GUICtrlRead($UTILISATEUR)

and at last this

$user = GUICtrlRead($UTILISATEUR,1)

But none of these tests seems to be okay.

Link to comment
Share on other sites

As I told it above, I already tried this :

$UTILISATEUR = GUICtrlRead($UTILISATEUR)

and this

$UTILISATEUR = GUICtrlRead($UTILISATEUR,1)

and also this

$user = GUICtrlRead($UTILISATEUR)

and at last this

$user = GUICtrlRead($UTILISATEUR,1)

But none of these tests seems to be okay.

you'll need to supply a script where the problem can be duplicated/fixed.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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