如何在任何地方输入WORD vv
,并让浏览器打开包含WORD
的链接?我知道脚本必须有
Run, browserpath www.example.com/x/y/z/WORD.html
但我不知道下一步该做什么。
答案 0 :(得分:2)
我会用这样的东西:
; google with the default browser
Run, https://www.google.com/search?hl=en&q=%UserInput%
; google images with IE
Run, iexplore.exe "https://images.google.com/images?hl=en&@@"
; google autohotkey with another browser
Run, "browserpath" "https://www.google.com/search?sitesearch=ahkscript.org&q=%UserInput%"
; autohotkey.com
https://www.autohotkey.com/search/search.php?query_string=%UserInput%
; autohotkey manual
https://www.google.com/search?sitesearch=ahkscript.org&q=%UserInput%
; wikipedia
https://en.wikipedia.org/wiki/Special:Search?search=%UserInput%&go=Go
<强>示例:强>
public function CloneItem($uniqueid)
{
$product = Product::findOrFail($uniqueid);
$new_product = $product->replicate();
$new_product->push();
return redirect()->back();
}