StringCaseSense

Determines whether string comparisons are case sensitive (default is "no").

StringCaseSense, On|Off

 

Parameters

On|Off On: String comparisons are case sensitive.
Off: String comparisons are not case sensitive.

 

ErrorLevel

ErrorLevel is set to 1 if there was a problem or 0 otherwise.

 

Remarks

The command affects the behavior of IfEqual (and its family), IF (expression) (except = and ==), IfInString, StringReplace and StringGetPos.

If this command isn't used in a script, string comparisons are never case sensitive.

The built-in variable A_StringCaseSense contains the current setting (On or Off).

Every newly launched thread (such as a hotkey, custom menu item, or timed subroutine) starts off fresh with the default setting for this command. That default may be changed by using this command in the auto-execute section (top part of the script).

 

Related

IfEqual, IfInString, if var between, StringReplace, StringGetPos

 

Example

StringCaseSense, on