Quote from PaulJonestindall on June 6, 2022, 11:21 amI'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?
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?
Quote from rasl on June 6, 2022, 4:11 pmIf you make the comparison with ! it is case sensitive
If "[pass]" "=" "![pass of text entry]"
salu2
If you make the comparison with ! it is case sensitive
If "[pass]" "=" "![pass of text entry]"
salu2

Quote from Vadim on June 6, 2022, 4:16 pm@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
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
Quote from PaulJonestindall on June 6, 2022, 6:23 pm@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.
@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.

Quote from Vadim on June 6, 2022, 9:17 pm@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.
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.

Quote from rcohen on June 7, 2022, 3:38 amIf 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 ?
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 ?

Quote from rcohen on June 8, 2022, 12:18 amJust 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
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
Quote from Gaev on June 8, 2022, 2:50 am@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.
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.
Quote from PaulJonestindall on June 8, 2022, 12:45 pm@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.
Yep. That did it. I don't know what I was thinking but you do need the exclamation point before both variables.
Thanks guys.