我將ahk檔及自定的icon图示檔放在同一位置,如放在桌面上.當我打開這个ahk檔時,我的自定图示會出現在,我的這个图示會代替原來的"H"图示
但我將這个ahk檔及自定图示放在啟動夾后,隨我重新開啟電腦,我的自定图示不會出現,反而"H"出現
我在我的ahk檔的開端位置加了如下code:
ifexist, icon.ico
{
MENU TRAY, Icon, icon.ico
}
請問各位幫忙
自定icon問題
Re: 自定icon問題
Sorry, i use google translate to understand your question..
how about this..
put your AHK shortcut (*.INK File) into startup folder
how about this..
put your AHK shortcut (*.INK File) into startup folder
Re: 自定icon問題
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
Re: 自定icon問題
I haven't touch ink file, what is it and how can I change ico file into ink fileSpark wrote:Sorry, i use google translate to understand your question..
how about this..
put your AHK shortcut (*.INK File) into startup folder
Re: 自定icon問題
我试成功了,但由于我把图示档一拼放在ahk档的同启动目录,这使这个图示每次开机时都会一拼打开,被小画家打开,怎样解决?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
Re: 自定icon問題
Right click your Project.ahk file and Choose "Create shortcut" (you can rename it)Ivan wrote:I haven't touch ink file, what is it and how can I change ico file into ink fileSpark wrote:Sorry, i use google translate to understand your question..
how about this..
put your AHK shortcut (*.INK File) into startup folder
copy your "shortcut" file into startup folder (no need to copy ahk and your picture file)
HTH
Re: 自定icon問題
Your idea is great, this avoid opening the pic. file at the same time!!! Thank You!!!Spark wrote:Right click your Project.ahk file and Choose "Create shortcut" (you can rename it)Ivan wrote:I haven't touch ink file, what is it and how can I change ico file into ink fileSpark wrote:Sorry, i use google translate to understand your question..
how about this..
put your AHK shortcut (*.INK File) into startup folder
copy your "shortcut" file into startup folder (no need to copy ahk and your picture file)
HTH
Who is online
Users browsing this forum: filipemb, Google [Bot], Ineedhelplz, Spawnova and 342 guests