Re: [AHK-] AutoHotKey辨識網址

作者: topwing (Levin)   2014-04-30 02:38:36
依你的Code這樣改
※ 引述《solomn (九米)》之銘言:
: 參考板友的教學
: 請問我下面的程式碼錯在哪呢?
: 邏輯是
: 如果Ctrl+C或反白,得到的是http://開頭
: 就開啟Chrome
: 送出Alt+D,將焦點移到上面的網址列
: 然後貼上網址,再Enter
: 如果不是網址
: 則開啟Chrome時,貼上文字做搜尋
: #Z::
: Send, ^c
: StringLeft, DecideVar, Clipboard, 7
: if DecideVar = http://
: {
: Run, C:\Users\電腦名稱\AppData\Local\Google\Chrome\Application\chrome.exe
: Sleep 500
: Send, !D
: Send, ^v{Enter}
: }
: else
: {
UrlVar = http://www.google.com.tw/search?q=%Clipboard%
Run, %UrlVar%
: }
: Return
: 謝謝

Links booklink

Contact Us: admin [ a t ] ucptt.com