Autohotkey 自动热键字符串比较

Autohotkey 自动热键字符串比较,autohotkey,string-comparison,Autohotkey,String Comparison,由于某些原因,我无法在我需要的脚本中使用自动热键字符串比较,但它正在测试脚本中工作 测试员 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 "%in

由于某些原因,我无法在我需要的脚本中使用自动热键字符串比较,但它正在测试脚本中工作

测试员

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  
}
主要

梅因一直给我病人。有什么想法吗?

你的“主”脚本很好用


=
比较器区分大小写,你知道。

你的主脚本对我来说似乎很好,当我在输入框中输入“密码”时,我得到了“这是正确的,先生。所以我不确定你的问题出在哪里!
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
}