好吧,我有我写的这个自动热键脚本,它看起来像这样:
^1::SendInput t/accepthelp 1{enter}
^2::SendInput t/accepthelp 2{enter}
^3::SendInput t/accepthelp 3{enter}
^4::SendInput t/accepthelp 4{enter}
^5::SendInput t/accepthelp 5{enter}
^6::SendInput t/accepthelp 6{enter}
^7::SendInput t/accepthelp 7{enter}
^8::SendInput t/accepthelp 8{enter}
^9::SendInput t/accepthelp 9{enter}
这适用于 SAMP,效果很好。t是游戏中触发输入框打开的键。
我需要做的是:如果我在游戏中手动打开盒子(我按t)然后我随机按下热键,我不希望他们发送任何东西!如果输入框在屏幕上 - 在此期间热键应该是无效的;它们仅在输入框隐藏/关闭时才起作用。
有什么办法可以做到这一点?
谢谢你。