but the second scipt works well.
What's the advantage and disadvantage of A and B?
I like a simple script like B. but I always want to get a perfect results.
Script A :
Code: Select all
^F12::
clipboard =
Sleep 100
Send ^c
ClipWait, 1
if ErrorLevel
return
clipboard := Trim(clipboard)
clipboard := RegExReplace(clipboard, "\.|,", "")
DetectSave := A_DetectHiddenWindows
DetectHiddenWindows On
SetTitleMatchMode 2
clipboard := RegExReplace(clipboard, " ", "%20")
run, http://www.google.com/search?q=" clipboard
Code: Select all
Capslock & 4::
SendInput,^c
Sleep 50
run, https://search.naver.com/search.naver?where=nexearch&query=%clipboard%
return