最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

autohotkey - ahkv2 how to use a variable to define key updown? - Stack Overflow

programmeradmin2浏览0评论
test(key){
    send "{key down}" ;no
    ; send "{%key% down}" ;no
    sleep 500
    send "{key up}"
}
test("w") ;test(w) doesnt work either as per the manual

Apparently the %key% variant works in ver 1 /

In ver 2 it says this works...obviously not working with send above tho:

if InStr(MyVar, "fox")
    MsgBox "The variable MyVar contains the word fox."

.htm

发布评论

评论列表(0)

  1. 暂无评论