Search found 16 matches

by Ivan
18 Dec 2018, 10:46
Forum: 请求帮助
Topic: 如何自动导出excel档案
Replies: 1
Views: 2908

如何自动导出excel档案

我的工作要每天按当天日期导出系统里的档案(以excel格式),我想问ahk能不能做到这个的自动化?我需要往哪方向学习
by Ivan
18 Dec 2018, 10:34
Forum: Ask For Help
Topic: How to use AHk to export Excel file
Replies: 1
Views: 667

How to use AHk to export Excel file

My company using a system that can export the data in Excel file according to the date(the date is fixed in format DD/MM/YYYY), but i need to export the data everyday, is it possible for me to automate the process by using AutoHotkey, what direction should i learn to do what i want?Thx please do not...
by Ivan
16 Jul 2018, 21:24
Forum: Ask For Help
Topic: 自定icon問題
Replies: 6
Views: 2062

Re: 自定icon問題

Sorry, i use google translate to understand your question.. how about this.. put your AHK shortcut (*.INK File) into startup folder I haven't touch ink file, what is it and how can I change ico file into ink file Right click your Project.ahk file and Choose "Create shortcut" (you can rename it) cop...
by Ivan
16 Jul 2018, 10:15
Forum: 请求帮助
Topic: 自定义热键如何再用 Topic is solved
Replies: 15
Views: 115001

Re: 自定义热键如何再用 Topic is solved

tmplinshi wrote:我记得默认是没有这个Lib目录的,自己创建一个即可。
我再试试
by Ivan
15 Jul 2018, 20:33
Forum: 请求帮助
Topic: 自定义热键如何再用 Topic is solved
Replies: 15
Views: 115001

Re: 自定义热键如何再用 Topic is solved

tmplinshi wrote:放在 AutoHotkey 的安装目录,即 AutoHotkey.exe 所在文件夹。

比如安装目录是 C:\Program Files\AutoHotkey
则 Lib 目录为 C:\Program Files\AutoHotkey\Lib\
我会不会是安装了sciTE AUOTOHOTKEY后这个lib会消失
by Ivan
12 Jul 2018, 22:01
Forum: Ask For Help
Topic: 自定icon問題
Replies: 6
Views: 2062

Re: 自定icon問題

A_AhkUser wrote:The file is assumed to be in %A_WorkingDir% if an absolute path isn't specified. (如果未指定绝对路径则假定 File 在 %A_WorkingDir% 中.)

Code: Select all

#Persistent
SetWorkingDir % A_ScriptDir ; 改变脚本的当前工作目录.
if (FileExist("icon.ico"))
	MENU TRAY, Icon, icon.ico
我试成功了,但由于我把图示档一拼放在ahk档的同启动目录,这使这个图示每次开机时都会一拼打开,被小画家打开,怎样解决?
by Ivan
12 Jul 2018, 21:57
Forum: Ask For Help
Topic: 自定icon問題
Replies: 6
Views: 2062

Re: 自定icon問題

Spark wrote:Sorry, i use google translate to understand your question..

how about this..
put your AHK shortcut (*.INK File) into startup folder
I haven't touch ink file, what is it and how can I change ico file into ink file
by Ivan
12 Jul 2018, 21:43
Forum: 请求帮助
Topic: 自定义热键如何再用 Topic is solved
Replies: 15
Views: 115001

Re: 自定义热键如何再用 Topic is solved

tmplinshi wrote:你可以把函数代码保存到一个文件中,比如 functions.ahk,然后把这个文件放在 AutoHotkey安装目录\Lib\ 目录下。之后你每个脚本都能直接调用里面的函数。
如果不放在 Lib\ 目录下的话,那你需要在每个脚本中用 #Include D:\test\functions.ahk 命令引用这个文件。
我在autohotkey里scite/tools和scite/toolbar和scite/tools/gendocs都找到lib,我应该放那一个
by Ivan
12 Jul 2018, 21:42
Forum: 请求帮助
Topic: 自定义热键如何再用 Topic is solved
Replies: 15
Views: 115001

Re: 自定义热键如何再用 Topic is solved

tmplinshi wrote:你可以把函数代码保存到一个文件中,比如 functions.ahk,然后把这个文件放在 AutoHotkey安装目录\Lib\ 目录下。之后你每个脚本都能直接调用里面的函数。
如果不放在 Lib\ 目录下的话,那你需要在每个脚本中用 #Include D:\test\functions.ahk 命令引用这个文件。
我在autohotkey里scite/tools和scite/toolbar和scite/tools/gendocs都找到lib,我应该放那一个
by Ivan
11 Jul 2018, 22:09
Forum: 请求帮助
Topic: 自定义热键如何再用 Topic is solved
Replies: 15
Views: 115001

Re: 自定义热键如何再用 Topic is solved

tmplinshi wrote:你可以把函数代码保存到一个文件中,比如 functions.ahk,然后把这个文件放在 AutoHotkey安装目录\Lib\ 目录下。之后你每个脚本都能直接调用里面的函数。
如果不放在 Lib\ 目录下的话,那你需要在每个脚本中用 #Include D:\test\functions.ahk 命令引用这个文件。
谢你的指引我试试!
by Ivan
11 Jul 2018, 21:41
Forum: Ask For Help
Topic: 自定icon問題
Replies: 6
Views: 2062

自定icon問題

我將ahk檔及自定的icon图示檔放在同一位置,如放在桌面上.當我打開這个ahk檔時,我的自定图示會出現在,我的這个图示會代替原來的"H"图示

但我將這个ahk檔及自定图示放在啟動夾后,隨我重新開啟電腦,我的自定图示不會出現,反而"H"出現

我在我的ahk檔的開端位置加了如下code:
ifexist, icon.ico
{
MENU TRAY, Icon, icon.ico
}


請問各位幫忙
by Ivan
11 Jul 2018, 06:28
Forum: 请求帮助
Topic: 自定义热键如何再用 Topic is solved
Replies: 15
Views: 115001

Re: 自定义热键如何再用 Topic is solved

tmplinshi wrote:用函数。

Code: Select all

f4::action1()

action1()
{
	send !m{enter 5}!s
}
action1 是函数名称,可以随便取。
我明白了,是用自建函数代替我想要的功能,但这自定函数是否只能在这ahk档用上,有没有可以将所有ahk档都能用这自定函数
by Ivan
10 Jul 2018, 20:31
Forum: 请求帮助
Topic: 自定义热键如何再用 Topic is solved
Replies: 15
Views: 115001

Re: 自定义热键如何再用 Topic is solved

Qysh wrote:(i used google translate to understand it)

Code: Select all

#m::send !m{enter 5}!s
~f4::send #m
THX you but it still doesn't work
by Ivan
10 Jul 2018, 02:30
Forum: 请求帮助
Topic: 自定义热键如何再用 Topic is solved
Replies: 15
Views: 115001

Re: 自定义热键如何再用 Topic is solved

My aim is to define a hotkey for an action, like #m for the action of !m{enter 5}!s
and when I need to use this action (i.e. !m{enter 5}!s), I don't need to rewrite the code (i.e. !m{enter 5}!s)
I hope to simply write #m, like f4::send #m, rather than f4::send !m{enter 5}!s
by Ivan
10 Jul 2018, 02:01
Forum: 请求帮助
Topic: 自定义热键如何再用 Topic is solved
Replies: 15
Views: 115001

Re: 自定义热键如何再用 Topic is solved

thx for Qysh's concern, but I have add ~ before f4, it still doesn't work
by Ivan
09 Jul 2018, 02:06
Forum: 请求帮助
Topic: 自定义热键如何再用 Topic is solved
Replies: 15
Views: 115001

自定义热键如何再用 Topic is solved

例如
#m::send !m{enter 5}!s
f4::send #m
如上面这样的code,结果是我按下#m是有想要的结果,但我按f4键却没有反应这是为什么呢?请各位帮忙

Go to advanced search