SkSub_JumpPath_By_CmdString(CmdString,Winid) ;此函数用于shift跳转 { ;msgbox 1%CmdString% ;读取到的ini中一行中等号后面的部分 CmdString:=SkSub_envtrans(CmdString) ; msgbox 1%CmdString% ;读取到的ini中一行中等号后面的部分 if RegExMatch(CmdString,"i)^(ow|openwith|rot|Run|roa|Runp|Rund)|") ;运行命令类 { CmdString:=RegExReplace(CmdString,"^.*?|") ;里面纯粹的 应用程序 路径 ; msgbox 1%CmdString% ;读取到的ini中一行中等号后面的部分 CmdString_removed_path:=RegExReplace(CmdString,"i)exe[^!]*[^>]*", "exe") IfExist,%CmdString_removed_path% { Run, explorer.exe /select`, "%CmdString_removed_path%" ; msgbox %CmdString_removed_path% ;msg出来的是程序的路径 } } else if RegExMatch(CmdString,"i)^(cando|cango)|") ;运行命令类 { CmdString:=RegExReplace(CmdString,"^.*?|") ;里面cando后面的标签名 ;msgbox 1%CmdString% ;读取到的ini中一行中等号后面的部分 ;~ MsgBox % "Cando_" . Candy_Cmd_Str2 ; MsgBox % "Cando_" . CmdString cando_lable=% "Cando_" . CmdString . ":" ; MsgBox %cando_lable% Loop,D:portablecandycando*.ahk { filename= Loop, Read, %A_LoopFileFullPath% { if (A_LoopReadLine = cando_lable) { Run notepad "%A_LoopFileFullPath%" break } continue } if filename { ;~ MsgBox %A_Index% break } } } else { TrayTip ,提示,不支持跳转的命令,30 } }