shift跳转函数

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
	}
}

给TA捐赠
共{{data.count}}人
人已捐赠
其他

SendText发送中文

2020-3-16 8:26:13

其他

QDir单键移动v2

2020-3-16 23:32:27

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索