Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autohotkey String-comparison

For some reason, I can not get an autohotkey string comparison to work in the script I need it in, but it is working in a test script.

Tester

password = asdf

^!=::
InputBox,input,Enter Phrase,Enter Phrase,,,,,,,30,
if ( input == password ){
    MsgBox, How original your left home row fingers are
    Return
} else {
    MsgBox, You entered "%input%"
    Return  
}

Main

password = password

!^=::
InputBox,input,Enter Password,Enter Password,HIDE,,,,,,30,
if ( input == password ){
    MsgBox,"That is correct sir"
    ;Run,C:\Copy\Registry\disable.bat
    return
}else{
    MsgBox,That is not correct sir you said %input%
    Return
}

Main keeps giving me the invalid. Any ideas?

like image 508
TechHeadDJ Avatar asked Dec 06 '25 05:12

TechHeadDJ


1 Answers

Your "main" script works just fine.

The == comparitor is case sensitive, you know.

like image 189
bgmCoder Avatar answered Dec 09 '25 08:12

bgmCoder