「AHK 快餐店[10] 之 键盘也会乾坤大挪移」的评论 http://inloveinparis.com/ahk-fast-food-restaurant-10-change-keys/ 分享免费、小巧、实用、有趣、绿色的软件 Mon, 09 Mar 2009 03:14:46 +0000 hourly 1 https://wordpress.org/?v=6.8.1 评论者:sfufoet http://inloveinparis.com/ahk-fast-food-restaurant-10-change-keys/comment-page-1/#comment-20737 Thu, 19 Jun 2008 11:19:25 +0000 http://inloveinparis.com/ahk-fast-food-restaurant-10-change-keys/#comment-20737 回复给 wildtoy

变量默认值是 0,所以第一次会执行到 if time=0

]]>
评论者:sfufoet http://inloveinparis.com/ahk-fast-food-restaurant-10-change-keys/comment-page-1/#comment-20736 Thu, 19 Jun 2008 11:18:59 +0000 http://inloveinparis.com/ahk-fast-food-restaurant-10-change-keys/#comment-20736 回复给 wildtoy

键盘的映射只能映射一次。所以只能用别的键来映射到 Numpad7 和 Numpad8。

下面是一段左Alt键映射为:第一次按下左Alt等于Alt按下,第二次按下左Alt等于Alt弹起。

LAlt::
if time=0
{
send {Alt Down}
time=1
}
else
{
send {Alt Up}
time=0
}
return

]]>
评论者:wildtoy http://inloveinparis.com/ahk-fast-food-restaurant-10-change-keys/comment-page-1/#comment-20734 Thu, 19 Jun 2008 10:39:37 +0000 http://inloveinparis.com/ahk-fast-food-restaurant-10-change-keys/#comment-20734 唉我以为自己能搞定呢,看来还是得再次求教
我玩魔兽时想用键盘代替右边小键盘
比如
::/war::
s::Numpad7
d::Numpad8
return
可是在里面经常须要说话,所有在不战斗的时候又想退出这个角本
本来想加上
::/warq::
s::s
d::d
return
反正这是我能想到比较笨的办法了,不知道为什么不好使
还有我希望能通过热键一直按下或弹起ALT键
也是打算放在
::/war:: 和return中的
本来想用#a::send {! down} 这样的代码,测试又不好使
总之就是在一段代码里开启另一段代码并可以停止的办法,请小众教一下

最后想说,AHK很强大,我现在基本上用它代替按键精灵,除了不支持C语言插入开发,希望小众软件能写个教程,将按键精灵里常规的功能用AHK都实现

]]>
评论者:sfufoet http://inloveinparis.com/ahk-fast-food-restaurant-10-change-keys/comment-page-1/#comment-20727 Thu, 19 Jun 2008 07:09:31 +0000 http://inloveinparis.com/ahk-fast-food-restaurant-10-change-keys/#comment-20727 回复给 wildtoy

例如 send 命令中:
send {a down}

]]>
评论者:sfufoet http://inloveinparis.com/ahk-fast-food-restaurant-10-change-keys/comment-page-1/#comment-20725 Thu, 19 Jun 2008 07:08:35 +0000 http://inloveinparis.com/ahk-fast-food-restaurant-10-change-keys/#comment-20725 回复给 wildtoy

左边的是Num Lock灯开启的时候,右边是关闭的时候:
Numpad0 NumpadIns
Numpad1 NumpadEnd
Numpad2 NumpadDown
Numpad3 NumpadPgDn
Numpad4 NumpadLeft
Numpad5 NumpadClear
Numpad6 NumpadRight
Numpad7 NumpadHome
Numpad8 NumpadUp
Numpad9 NumpadPgUp
NumpadDot (.) NumpadDel
NumpadDiv (/) NumpadDiv (/)
NumpadMult (*) NumpadMult (*)
NumpadAdd (+) NumpadAdd (+)
NumpadSub (-) NumpadSub (-)
NumpadEnter NumpadEnter

]]>
评论者:wildtoy http://inloveinparis.com/ahk-fast-food-restaurant-10-change-keys/comment-page-1/#comment-20724 Thu, 19 Jun 2008 07:03:16 +0000 http://inloveinparis.com/ahk-fast-food-restaurant-10-change-keys/#comment-20724 还有一直按住某键的命令是怎么呢

]]>
评论者:wildtoy http://inloveinparis.com/ahk-fast-food-restaurant-10-change-keys/comment-page-1/#comment-20723 Thu, 19 Jun 2008 07:02:23 +0000 http://inloveinparis.com/ahk-fast-food-restaurant-10-change-keys/#comment-20723 请问小键盘上的数字在ahk里怎么表示啊

]]>
评论者:sfufoet http://inloveinparis.com/ahk-fast-food-restaurant-10-change-keys/comment-page-1/#comment-19126 Thu, 22 May 2008 13:12:41 +0000 http://inloveinparis.com/ahk-fast-food-restaurant-10-change-keys/#comment-19126 回复给 Dofy

非常抱歉,现在才看到你的留言。

用 AHK 实现起来非常复杂,要用到 keywait 之类的命令。^abc 做快捷键也没什么意义吧?呵呵。如果你希望用三个键来热键的话,可以这样写:

^!c::

或者

^!+c::

字母做组合键只能做 1 个

]]>
评论者:sfufoet http://inloveinparis.com/ahk-fast-food-restaurant-10-change-keys/comment-page-1/#comment-17234 Mon, 31 Mar 2008 11:02:58 +0000 http://inloveinparis.com/ahk-fast-food-restaurant-10-change-keys/#comment-17234 回复给 emisjerry

简睿随笔《科技篇》 在大陆访问不了。

那个地址是通过在线代理的地址。

]]>
评论者:emisjerry http://inloveinparis.com/ahk-fast-food-restaurant-10-change-keys/comment-page-1/#comment-17233 Mon, 31 Mar 2008 10:20:43 +0000 http://inloveinparis.com/ahk-fast-food-restaurant-10-change-keys/#comment-17233 Dear sfufoet,

简睿随笔《科技篇》的HyperLink不對,無法確定您是取材自那篇文章的… 🙁

]]>