ahk常用脚本

::glo::
	send git log --oneline --graph
	send {ENTER}
	return

::gco::
	addAll()
	send git commit -m ""
	return

::gps::
	send git push origin HEAD:master
	send {ENTER}
	return

::gfe::
	send git fetch origin master:tmp 
	send {ENTER}
	return



::gig::
	send .idea/`n__pycache__/`ndist/`nbuild/`n
	return


F1::
	 launchFsc()
	 send !{PrintScreen}
	 return
 
F2::
	send 回归测试-问题依旧复现
	return

F3::
	launchTypora()
	return 



; ============== functions ==============
addAll(){
	send git add .
	send {ENTER}
	return
}
 
getPath(p){
	DetectHiddenWindows,On
	Process,Exist,%P%
	if ErrorLevel>0
	{
		PID=%ErrorLevel%
		WinGet,lujing,ProcessPath,ahk_pid %pid%
		return lujing
	}
	return "Sorry, get no path"
 }

launchFsc(){
	ifWinExist ahk_class FastStoneScreenCapturePanel
		winactivate
	else
		run "D:\Program Files (x86)\FastStone Capture\FSCapture.exe"
		sleep 1000
	return
}

launchTypora(){
	ifWinExist ahk_exe Typora.exe
		winactivate
	else
		run "D:\Program Files\Typora\Typora.exe"
		sleep 1000
	return
}


已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 1024 设计师:上身试试 返回首页