「AHK 快餐店 – 开机自动运行程序的延迟启动[绿色版]」的评论 http://inloveinparis.com/ahk-23-run-later/ 分享免费、小巧、实用、有趣、绿色的软件 Sun, 12 May 2013 16:09:07 +0000 hourly 1 https://wordpress.org/?v=6.8.1 评论者:兔森破兔样 http://inloveinparis.com/ahk-23-run-later/comment-page-1/#comment-160675 Sun, 12 May 2013 16:09:07 +0000 http://inloveinparis.com/ahk-23-run-later/#comment-160675 回复给 linuxfan

@linuxfan 本人亲测在win8环境下也必须把runwait改成run

]]>
评论者:linuxfan http://inloveinparis.com/ahk-23-run-later/comment-page-1/#comment-110345 Wed, 25 Apr 2012 03:39:39 +0000 http://inloveinparis.com/ahk-23-run-later/#comment-110345 在我的 win7 ultimate 32 sp1 不能正常运行,必须等上一个程序进程结束才能运行下一个程序,把 runwait 改成 run 就完美运行了!

]]>
评论者:tolbkni http://inloveinparis.com/ahk-23-run-later/comment-page-1/#comment-99184 Tue, 27 Dec 2011 04:02:46 +0000 http://inloveinparis.com/ahk-23-run-later/#comment-99184 回复给 sfufoet

@sfufoet, 确实,这里用 RunWait 有问题,像 @msmouse 说的,要等到前一个程序结束才会启动下一个程序。暂时只能用 Run 配合 Sleep ,有没有同学有更合适的写法。

]]>
评论者:sfufoet http://inloveinparis.com/ahk-23-run-later/comment-page-1/#comment-38046 Sat, 04 Apr 2009 08:44:38 +0000 http://inloveinparis.com/ahk-23-run-later/#comment-38046 回复给 黑色柳丁

@黑色柳丁, 评论放出来了。加个 0 在前面就行了。绝对是第一个启动的。

]]>
评论者:黑色柳丁 http://inloveinparis.com/ahk-23-run-later/comment-page-1/#comment-38036 Sat, 04 Apr 2009 07:49:35 +0000 http://inloveinparis.com/ahk-23-run-later/#comment-38036 回复给 sfufoet

@sfufoet, 厄 俺刚刚的回复被HX了?

]]>
评论者:黑色柳丁 http://inloveinparis.com/ahk-23-run-later/comment-page-1/#comment-38034 Sat, 04 Apr 2009 07:34:00 +0000 http://inloveinparis.com/ahk-23-run-later/#comment-38034 回复给 sfufoet

@sfufoet, 多谢点拨!一键开关程序实现了,代码如下
#c::
{
Process,exist,FastStone Capture.exe
if ErrorLevel
winclose,FastStone Capture
else
run E:\greed soft\FastStone capture\FastStone Capture.exe
return
}
这里我用的是winclose 因为发现Process, Close是结束进程强制退出,会出现很多问题(未刷新托盘区,退出无提示等)
对于像记事本这种标题会改变的窗口则这样写

if ErrorLevel
{
;部分匹配模式
SetTitleMatchMode, 2
;关闭含有”记事本”字样的窗口
winclose,记事本
}

关于那个启动顺序我再试试,因为我这边校园网要先启动一个客户端才有网络,所以那个流氓软件必须得先启动才行…

]]>
评论者:sfufoet http://inloveinparis.com/ahk-23-run-later/comment-page-1/#comment-38023 Sat, 04 Apr 2009 05:49:31 +0000 http://inloveinparis.com/ahk-23-run-later/#comment-38023 回复给 黑色柳丁

@黑色柳丁, 是按照字母排列的,数字方面没注意过。其实也没所谓了。要提前就全部加 0。

结束进程可以用:Process, Close, %active_id%

active_id 请替换为实际变量。在启动软件的时候,可以获得。比如:Run Notepad.exe, , , active_id

]]>
评论者:黑色柳丁 http://inloveinparis.com/ahk-23-run-later/comment-page-1/#comment-38022 Sat, 04 Apr 2009 05:26:40 +0000 http://inloveinparis.com/ahk-23-run-later/#comment-38022 火山你好,我试验了这个延迟启动方案,并且根据自己需要写了代码,效果很好,但是我发现一些问题:
1.启动顺序不是按照名称排序。在我的电脑上就是按照1,3,2这样的顺序启动(以msgbox判定的),似乎有其他的排序依据。有需要按照固定顺序启动的童鞋可以吧快捷方式剪切出去再放回来,顺序就会改变,但是没发现固定的规律。
@自言自语2.关于那个lnk启动不了,我也发现过,如果你通过修改把快捷方式上的小箭头图标去掉,AHK就认不出快捷方式了,不知道什么原因 :(。
@DemoJameson 3.这个问题我也发现了 runwait似乎确实是执行完程序就执行下一句,我想这也许是和咱们是通过执行快捷方式而不是原程序来执行有关。可以通过添加sleep来解决,对于需要延迟时间长些的程序还可以利用if语句单独处理。

暂时发现的就这些问题了,我还想问一下AHK有没有结束进程的语句?我是想通过一个快捷键来开关一些小程序,既按一下启动,再按一下结束,不知道火山有没有什么思路啊?

最后祝愿小众越搞越好,真是太喜欢你们的网站了!呱唧呱唧~~~

]]>
评论者:DemoJameson http://inloveinparis.com/ahk-23-run-later/comment-page-1/#comment-29908 Sun, 23 Nov 2008 02:32:21 +0000 http://inloveinparis.com/ahk-23-run-later/#comment-29908 感觉 Runwait 运行 lnk 用起来和 Run 命令一样,启动进程后就马上执行下一句了。
Runwait 的正确作用是等待运行的程序结束才继续向下运行。
如:
Runwait, notepad
Msgbox, notepad have been closed

]]>
评论者:为 AutoHotKey 做点事 | 小众软件 - Appinn http://inloveinparis.com/ahk-23-run-later/comment-page-1/#comment-22590 Wed, 23 Jul 2008 05:34:25 +0000 http://inloveinparis.com/ahk-23-run-later/#comment-22590 […] 下面又酷酷地拿了我的开机自动运行程序的延迟启动,再把33世界的移动文件或文件夹至目标路径-AutoHotkey脚本改头换面,和帅帅滴拿了关闭显示器-AutoHotkey脚本。 […]

]]>