Author |
Topic |
|
mangerz
3 Posts |
Posted - 05/09/2016 : 02:31:36
|
--Take some parts of codes that had on this page, and I had to change it a little.
--1)Youtube example.
acDelay(100)
local a1 = acGetClipboardText() acSendKeys("{DELAY=50}^c") acDelay(50) local a2 = acGetClipboardText() if a2 ~= a1 then a2 = 'https://www.youtube.com/results?search_query=' ..a2 -- You can search in any web. Just need to see the address bar in the page you want to search, like youtube. acShellExecute("open","rundll32.exe", "url.dll,FileProtocolHandler "..a2, nil, 1) else wEb = 'www.youtube.com/'--change the web here! acShellExecute("open","rundll32.exe", "url.dll,FileProtocolHandler "..wEb, nil, 1)
end
--EXAMPLES -> -- 'http://images.google.com/images?q=' -- 'http://www.google.com/maps?q=' -- 'http://thesaurus.reference.com/browse/' -- 'http://www.google.com/news?q=' -- 'http://en.wikipedia.org/wiki/Special:Search?search=' -- 'http://search.ebay.com/search/search.dll?satitle=' -- 'http://www.google.com/search?q=define%3A' this is good! Define.
--------------------------------------------------------------------------------------
--2) TRANSLATE use another gesture for google translate. and each page : wikipedia,google images, etc.
acDelay(100)
local a1 = acGetClipboardText() acSendKeys("{DELAY=50}^c") acDelay(50) local a2 = acGetClipboardText() if a2 ~= a1 then a2 = 'https://translate.google.com/#auto/es/' ..a2 --Change default language here. I've selected. 'auto/es' acShellExecute("open","rundll32.exe", "url.dll,FileProtocolHandler "..a2, nil, 1) else wEb = 'https://translate.google.com/' --change the web here! acShellExecute("open","rundll32.exe", "url.dll,FileProtocolHandler "..wEb, nil, 1)
end
--Mangerz |
Edited by - mangerz on 05/30/2016 20:10:18 |
|
control_freak
51 Posts |
Posted - 05/22/2016 : 02:15:00
|
hey thanks mangers. i was looking for this. |
Edited by - control_freak on 05/22/2016 02:19:48 |
|
|
control_freak
51 Posts |
Posted - 07/10/2016 : 13:57:55
|
hey rob is it possible to search for a phrase with the searched window opening in the background? how can i do that?
|
|
|
|
Topic |
|
|
|