有時(shí)候需要重復(fù)輸入大量文字亚再,反復(fù)Ctrl+C反復(fù)Ctrl+V 還是很浪費(fèi)時(shí)間,于是我自己寫(xiě)了這個(gè)小工具暇咆,運(yùn)用Ctrl+數(shù)字實(shí)現(xiàn)十個(gè)文本的快速輸入实柠。
只要是能使用Ctrl+V的地方,本工具都可以正常使用拯杠。
界面如圖:
使用方法也非常簡(jiǎn)單掏婶,啟動(dòng)軟件,直接在需要輸入文本的地方按快捷鍵即可潭陪。
如果需要修改文本雄妥,則雙擊修改。
支持時(shí)間格式轉(zhuǎn)換依溯,在需要插入時(shí)間的地方輸入“【時(shí)間格式:%Y年%m-%d %H:%M:%S】”即可老厌,其中至少有一個(gè)%號(hào),其他內(nèi)容根據(jù)需要任意修改黎炉,比如:
【時(shí)間格式:%Y年%m月%d日 %H:%M:%S】
【時(shí)間格式:%H:%M:%S】
【時(shí)間格式:%Y年%m月 %H:%M】
這部分的轉(zhuǎn)換代碼為:
//author:autumoon
//日期:2021-09-16
CString transFormat(const CString& strContent)
{
CString strNewContent = strContent;
int idx_s = strNewContent.Find(_T("【時(shí)間格式:"));
if (idx_s != -1)
{
//轉(zhuǎn)換類(lèi)容
CString strTime; //獲取系統(tǒng)時(shí)間
CTime tm;
tm = CTime::GetCurrentTime();
int idx_e = strNewContent.Find(_T("】"), idx_s);
while(idx_e != -1)
{
//逐個(gè)替換
CString strFormat = strNewContent.Mid(idx_s + 1, idx_e - idx_s - 1);
if (strFormat.GetLength() >= 5)
{
strFormat = strFormat.Mid(5);
}
strTime = tm.Format(strFormat);
strNewContent = strNewContent.Mid(0, idx_s) + strTime + strNewContent.Mid(idx_e + 1);
idx_s = strNewContent.Find(_T("【時(shí)間格式:"));
if (idx_s == -1)
{
break;
}
idx_e = strNewContent.Find(_T("】"), idx_s);
}
}
return strNewContent;
}
工具最新版軟件下載地址FastInput.rar:秋月的私語(yǔ)小工具集_免費(fèi)高速下載|百度網(wǎng)盤(pán)-分享無(wú)限制https://pan.baidu.com/s/1eSPG4RS
藍(lán)奏云:FastInput.rar -?https://autumoon.lanzoui.com/iu1ziu4qhli 密碼52pojie(本來(lái)打算發(fā)在52pojie的枝秤,因?yàn)橹暗氖?jīng)歷,想想還是算了)
軟件殺毒:
軟件是拿來(lái)自用的慷嗜,所以沒(méi)有寫(xiě)得太復(fù)雜淀弹,歡迎交流與討論丹壕。