Text Entry Password Style Case Sensitive? - Forum

Forum Navigation
You need to log in to create posts and topics.

Text Entry Password Style Case Sensitive?

I'm sure this has to have come up at some point.

When using the Text Entry object, under the Style tab you can select password where characters typed are shown as asterisks (*).

Has anyone worked out a character case sensitive solution for this? i.e. I vs i or P vs p, etc.
Does anyone have a function or VBScript for this?

If you make the comparison with ! it is case sensitive

If "[pass]" "=" "![pass of text entry]"

 

salu2

Vadim has reacted to this post.
Vadim

@pauljonestindall

There are plugins that can compare strings case-sensitive:

hpwControl 1.41 (Hans-Peter Wickern) = hpwStrSearch

rlFunctions 2.6s (Reynold E. Lariza) = rlStrCmp

dec_Plus 1.9 (David Esperalta) = dec_CompararDosCadenas

FileUtils (Drazen Glojnaric, Marije Ljolje) = dgNeoEdit

@rasl Thanks, but it wouldn't work for me.

@vadim I have several of these plugins. But it appears I must have an older version of FileUtils. My version doesn't have the dgNeoEdit action.

Thank you both for the help.

@pauljonestindall

You can try the version of the plugin that is in the plugin library on my online course.

I haven't tried it myself, unfortunately. I have not yet had such a task.

If you guys come up empty here, we can talk to Zaeem about perhaps adding that to his Utils plugin.   Let's see if anyone works out a solution first ;-0

I do believe there is a plugin that converts a char into it's ascii value.  Since the ascii value of a letter is different than it's cap, perhaps first converting the two strings to ascii value strings first, and THEN comparing them might be an option ?

 

 

luishp and Vadim have reacted to this post.
luishpVadim

Just figured out, and used this for case sensitive input.

Figure out what the MD5 of your password is, and set the [PassComp] variable to this string prior to this step.

Then:

 InputBox "Master Password" "Please enter your password!" "[Entered]"
 HashString "MD5" "[Entered]" "[EnteredCompared]"

  If "[EnteredCompared]" "=" "[PassComp]"

  ......  this password matches including CaSe

  Else
  AlertBox "Error" "This doesn't seem to be the right password.  Be try again carefully. It IS case sensitive"
  Endif

 

Vadim has reacted to this post.
Vadim

@pauljonestindall

Taking a cue from @rasl , I tried this (very slightly modified) comparison (! in front of both variables) ...

SetVar "[CorrectPass]" "Gaev1234"

SetVar "[CompareResult]" "not same as"
If "![CorrectPass]" "=" "![Userpass]"
   SetVar "[CompareResult]" "same as"
EndIf

AlertBox "Comparison Result" "!Entered password [UserPass] is [CompareResult] Correct password [CorrectPass]"

... it worked in all cases I tried.

Vadim, proforma.guyot and rcohen have reacted to this post.
Vadimproforma.guyotrcohen

@rasl @gaev

Yep. That did it. I don't know what I was thinking but you do need the exclamation point before both variables.

Thanks guys.