「AHK 快餐店[9] 之 让鼠标移动一像素」的评论 http://inloveinparis.com/ahk-fast-food-restaurant-9-move-the-mouse-one-pixel/ 分享免费、小巧、实用、有趣、绿色的软件 Sun, 22 Mar 2009 12:21:21 +0000 hourly 1 https://wordpress.org/?v=6.8.1 评论者:橙色八月 http://inloveinparis.com/ahk-fast-food-restaurant-9-move-the-mouse-one-pixel/comment-page-1/#comment-36935 Sun, 22 Mar 2009 12:21:21 +0000 http://inloveinparis.com/ahk-fast-food-restaurant-9-move-the-mouse-one-pixel/#comment-36935 其实默认参数是1!!你调到0就知道了

]]>
评论者:sfufoet http://inloveinparis.com/ahk-fast-food-restaurant-9-move-the-mouse-one-pixel/comment-page-1/#comment-13577 Sat, 03 Nov 2007 01:34:05 +0000 http://inloveinparis.com/ahk-fast-food-restaurant-9-move-the-mouse-one-pixel/#comment-13577 这两种语法是不一样的,第一种是运行一个代码片段,最后又会返回。第二种是跳到代码片段那里去执行。

]]>
评论者:Dofy http://inloveinparis.com/ahk-fast-food-restaurant-9-move-the-mouse-one-pixel/comment-page-1/#comment-13576 Sat, 03 Nov 2007 01:32:13 +0000 http://inloveinparis.com/ahk-fast-food-restaurant-9-move-the-mouse-one-pixel/#comment-13576 @sfufoet 多谢老兄 😀
另外, autohotkey 是不是有多种语法啊? 我找到另外的解决方案, 感觉不错, 而且优化了一下鼠标移动, hoho 🙂 http://blog.dofy.net/?p=479

]]>
评论者:AHK 快餐店[12] 之 秒杀窗口,左键加右键 | 小众软件 - Applications Inn http://inloveinparis.com/ahk-fast-food-restaurant-9-move-the-mouse-one-pixel/comment-page-1/#comment-13571 Fri, 02 Nov 2007 23:18:16 +0000 http://inloveinparis.com/ahk-fast-food-restaurant-9-move-the-mouse-one-pixel/#comment-13571 […] sfufoet: @dofy 第一种: Gosub, Label1 MsgBox, The… […]

]]>
评论者:sfufoet http://inloveinparis.com/ahk-fast-food-restaurant-9-move-the-mouse-one-pixel/comment-page-1/#comment-13568 Fri, 02 Nov 2007 18:01:06 +0000 http://inloveinparis.com/ahk-fast-food-restaurant-9-move-the-mouse-one-pixel/#comment-13568 @dofy
第一种:
Gosub, Label1
MsgBox, The Label1 subroutine has returned (it is finished).
return

Label1:
MsgBox, The Label1 subroutine is now running.
return

第二种:

Goto, MyLabel

MyLabel:
Sleep, 100

]]>
评论者:Dofy http://inloveinparis.com/ahk-fast-food-restaurant-9-move-the-mouse-one-pixel/comment-page-1/#comment-13564 Fri, 02 Nov 2007 13:53:05 +0000 http://inloveinparis.com/ahk-fast-food-restaurant-9-move-the-mouse-one-pixel/#comment-13564 @tireless: 偶写了一段, 在cmd窗口中用 win+s 开始选择, win+c 复制, win+v 粘贴, win+q 退出

;—————————————-
#ifWinActive,ahk_class ConsoleWindowClass

beginSelect := false

#s::
if(beginSelect == false){
click right, 10, 50
send k
beginSelect := true
}
return

#c::
if(beginSelect == true){
click right, 10, 50
beginSelect := false
}
return

#v::
click right, 10, 50
send p
;send %clipboard%
; 曾尝试剪贴板, 速度不如右键菜单这个快
return

#q::
send ^c exit {enter}
return
;—————————————-

]]>
评论者:Dofy http://inloveinparis.com/ahk-fast-food-restaurant-9-move-the-mouse-one-pixel/comment-page-1/#comment-13559 Fri, 02 Nov 2007 13:21:06 +0000 http://inloveinparis.com/ahk-fast-food-restaurant-9-move-the-mouse-one-pixel/#comment-13559 有意思, 研究中, 还不知道怎么在一个自定义函数中调用另一个自定义函数 🙁

@tireless: cmd 窗口中 ctrl+c 是终止, 建议定义其他热键做复制粘贴

]]>
评论者:Dofy http://inloveinparis.com/ahk-fast-food-restaurant-9-move-the-mouse-one-pixel/comment-page-1/#comment-13558 Fri, 02 Nov 2007 13:17:49 +0000 http://inloveinparis.com/ahk-fast-food-restaurant-9-move-the-mouse-one-pixel/#comment-13558 hotkey,^left ,a_left
hotkey,^right ,a_right
hotkey,^up ,a_up
hotkey,^down ,a_down

hotkey,^1,init

init:
x := 0
y := 0
tooltip,
return

a_left:
mousemove,-1,0,0,r
x--
tooltip, X:%x% Y:%y%
return

a_right:
mousemove,1,0,0,r
x++
tooltip, X:%x% Y:%y%
return

a_up:
mousemove,0,-1,0,r
y--
tooltip, X:%x% Y:%y%
return

a_down:
mousemove,0,1,0,r
y++
tooltip, X:%x% Y:%y%
return

这是我写着玩的, ctrl + 方向 控制鼠标,下图是用这个工具画的 😀

http://dofy.net/myfiles/autohotkey_test.png

]]>
评论者:sfufoet http://inloveinparis.com/ahk-fast-food-restaurant-9-move-the-mouse-one-pixel/comment-page-1/#comment-13479 Wed, 31 Oct 2007 23:40:36 +0000 http://inloveinparis.com/ahk-fast-food-restaurant-9-move-the-mouse-one-pixel/#comment-13479 @tireless,orz,我是根据标题含有 cmd.exe 判断的,helfee 是根据窗口类来判断的。我这样写不够通用。他那样写绝对保险。

]]>
评论者:AHK 快餐店[10] 之 键盘也会乾坤大挪移 | 小众软件 - Applications Inn http://inloveinparis.com/ahk-fast-food-restaurant-9-move-the-mouse-one-pixel/comment-page-1/#comment-13478 Wed, 31 Oct 2007 23:00:34 +0000 http://inloveinparis.com/ahk-fast-food-restaurant-9-move-the-mouse-one-pixel/#comment-13478 […] AHK 快餐店[9] 之 让鼠标移动一像素 10-30-2007 […]

]]>