[AHK]針對Everything搜索,可否按crtl+enter直接網絡搜索

Everything是一款離不開的軟件了,能否擴展它直接搜索網絡內容呢?

 

解決方案:

啓動ev後,在搜索框輸入內容,然後按熱鍵 ctrl+enter,就會用默認瀏覽器打開 百度來搜哦,具體ahk代碼如下:

#SingleInstance,Force
#IfWinActive ahk_class EVERYTHING
^Enter::
ControlGetText,Keywords,Edit1,A
OutputDebug %Keywords%
run, http://www.baidu.com/s?wd=%Keywords% 
return
#IfWinActive

Everything設置

 

 

【升級版】當啓動器

;更新地址:https://blog.csdn.net/liuyukuan/article/details/81950299
#SingleInstance,Force
#IfWinActive ahk_class EVERYTHING
^Enter::
ControlGetText,Keywords,Edit1,A
if (Keywords="cmd")
  Run %ComSpec%
else if (Keywords="notepad")
  Run notepad
else if (Keywords="mspaint")
  Run mspaint
else if (Keywords="calc")
  Run calc
else
{
OutputDebug %Keywords%  
run, http://www.baidu.com/s?wd=%Keywords% 
}
return
#IfWinActive

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章