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

autohotkey v2 - new keyword is considered invalid - Stack Overflow

programmeradmin2浏览0评论

This simple example showcases that the new keyword is not working in autohotkey v2.

#Requires AutoHotkey v2.0

MsgBox "AHK Version: " A_AhkVersion

ih := new InputHook("L1 T0.5")
ih.Start()
key := ih.Wait()  ; Wait for one key press (or timeout)
ih.Stop()

MsgBox "Key pressed: " key

If i comment out that portion, I get the following output.

#Requires AutoHotkey v2.0

MsgBox "AHK Version: " A_AhkVersion

;ih := new InputHook("L1 T0.5")
;ih.Start()
;key := ih.Wait()  ; Wait for one key press (or timeout)
;ih.Stop()

;MsgBox "Key pressed: " key

This has been frustrating me for quite a while, nothing I search online is giving me any indication of how to fix this. Any ideas

发布评论

评论列表(0)

  1. 暂无评论