Sign in to follow this  
Followers 0
Shao

Problems With Guictrlread

7 posts in this topic

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

Share this post


Link to post
Share on other sites



you need to read the control ID of the input

$handle = guictrlcreateinput()

; later

info = guictrlread($hande)

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Share this post


Link to post
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.

 

Share this post


Link to post
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.

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites

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

Thank you Gafrost but it's okay, I had inserted guidelete() before affecting the datas from guictrl

Share this post


Link to post
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
Sign in to follow this  
Followers 0