Jump to content

Recommended Posts

Posted

Hi, i wanted to make inputbox password, need to get it's chars length in it, because the "password char" is too secure :bye:

and i need the user to know if he is writing or not!!

here's my effort

Global $length, $Pw

$Pw = InputBox("Security", "Type password to Encrypt/Decrypt file." & @CRLF & "Notice: password case sensitive" & @CRLF & "Pw length: " & $length, "", "ٌ", 220, 150)

$length = StringLen($Pw)


MsgBox(0, "", $length)

i tried to put $length above $Pw but didn't work too.

thanks :oops:

[font="arial, helvetica, sans-serif;"]Advice for you[/font][font="arial, helvetica, sans-serif;"]: [/font][u]Search[/u] before posting.

 

[font="arial, helvetica, sans-serif;"] *********** Problem solved? if yes [/font][color=rgb(0,0,0);font-family:arial, helvetica, sans-serif;] *********[/color]

[font="arial, helvetica, sans-serif;"]******* press "Mark Solved" button. *******[/font]

Posted (edited)

I'm not quite following you, because your code works, I type in 5 characters and StringLen returns the value of 5.

Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted (edited)

  On 3/19/2012 at 12:23 AM, 'guinness said:

I'm not quite following you, because your code works, I type in 5 characters and StringLen returns the value of 5.

just in msgbox :bye:

but in inputbox doesn't work :oops: if u notice here:

[autoit]

$Pw = InputBox("Security", "Type password to Encrypt/Decrypt file." & @CRLF & "Notice: password case sensitive" & @CRLF & "Pw length: " & ----->>> $length <<<-----, "", "ٌ", 220, 150)

[/autoit

Edited by Command3r

[font="arial, helvetica, sans-serif;"]Advice for you[/font][font="arial, helvetica, sans-serif;"]: [/font][u]Search[/u] before posting.

 

[font="arial, helvetica, sans-serif;"] *********** Problem solved? if yes [/font][color=rgb(0,0,0);font-family:arial, helvetica, sans-serif;] *********[/color]

[font="arial, helvetica, sans-serif;"]******* press "Mark Solved" button. *******[/font]

Posted

I'm sorry but some BBCode appears to have made its way into your previous post.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

Perhaps this is what you're looking for >>

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

i have read the future but that is not what im looking for, i just need a label in inputbox carrying the length of it :oops:

[font="arial, helvetica, sans-serif;"]Advice for you[/font][font="arial, helvetica, sans-serif;"]: [/font][u]Search[/u] before posting.

 

[font="arial, helvetica, sans-serif;"] *********** Problem solved? if yes [/font][color=rgb(0,0,0);font-family:arial, helvetica, sans-serif;] *********[/color]

[font="arial, helvetica, sans-serif;"]******* press "Mark Solved" button. *******[/font]

Posted

OK, it can't be done with the InputBox function, you'll have to create your own version using the GUI creation functions. Good luck.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

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
×
×
  • Create New...