Thank you for your help
From:
Code: Select all
hotkey,^',Label_DrawGui_KyRun
Code: Select all
^F8::gosub, Label_DrawGui_KyRun
https://gitee.com/kawvin/kyrun/blob/master/KyRun.ahk
Code: Select all
hotkey,^',Label_DrawGui_KyRun
Code: Select all
^F8::gosub, Label_DrawGui_KyRun
Code: Select all
^F8::
gosub, Label_DrawGui_KyRun
Code: Select all
Label_DrawGui_KyRun:
Confirmed it is addedV0RT3X wrote: ↑20 May 2024, 06:29I don't know about the rest of your script, but maybe try...
Tried your method but not working.Code: Select all
^F8:: gosub, Label_DrawGui_KyRun
Assuming you didn't forget to add the sub... (I personally do that a lot)Code: Select all
Label_DrawGui_KyRun:
Code: Select all
hotkey, ^/, Label_DrawGui_KyRun
/*
^F8::
gosub, Label_DrawGui_KyRun
*/
; hotkey, ^[, Label_DrawGui_KyRun
; 配合参数调用,跳过注册热键
if 0>0
gosub,Label_Main
return
;}
Label_Main: ;{ 运行脚本
if 0>0
{
aPara=%1%
if 2!=
bPara=%2%
else
bPara:=""
}
;}
Label_DrawGui_KyRun: ;{ KyRun主窗体
Menu Tray, Icon, %A_ScriptDir%\KyRun.ico
try
Gui, KyRun:Destroy
Gui, KyRun:+AlwaysOnTop +LastFound ;-Caption
Code: Select all
; hotkey, ^/, Label_DrawGui_KyRun
hotkey, ^\, Label_DrawGui_KyRun
hotkey, ^NumpadDiv, Label_DrawGui_KyRun
if 0>0
gosub, Label_Main
return
;}
Label_Main:
if 0>0
{
aPara=%1%
if 2 !=
bPara=%2%
else
bPara := ""
}
;}
Return
Label_DrawGui_KyRun:
Menu, Tray, Icon, %A_ScriptDir%\KyRun.ico
try
Gui, KyRun:Destroy
Gui, KyRun:+AlwaysOnTop +LastFound ;-Caption
Gui, KyRun:Add,text, ,% "text text"
Gui, KyRun:Show
Return
Code: Select all
^F8::goto, Label_DrawGui_KyRun
Users browsing this forum: arrondark, mikeyww, Noitalommi_2, Zedcars and 202 guests